1.1 --- a/sourcemm/sample_mm/oslink.h Thu Jul 20 10:53:06 2006 +0000
1.2 +++ b/sourcemm/sample_mm/oslink.h Thu Jul 20 11:11:06 2006 +0000
1.3 @@ -21,12 +21,13 @@
1.4 #define OS_WIN32
1.5 #if defined _MSC_VER && _MSC_VER >= 1400
1.6 #undef ARRAYSIZE
1.7 - #else
1.8 - #define mkdir _mkdir
1.9 #endif
1.10 #include <windows.h>
1.11 #include <io.h>
1.12 #include <direct.h>
1.13 + #ifndef mkdir
1.14 + #define mkdir(a) _mkdir(a)
1.15 + #endif
1.16 #define dlmount(x) LoadLibrary(x)
1.17 #define dlsym(x, s) GetProcAddress(x, s)
1.18 #define dlclose(x) FreeLibrary(x)
1.19 @@ -56,11 +57,12 @@
1.20 typedef __int64 int64_t;
1.21 typedef unsigned __int64 uint64_t;
1.22 #elif defined __GNUC__
1.23 -# if !__GLIBC_HAVE_LONG_LONG
1.24 +#include <stdint.h>
1.25 +#if !__GLIBC_HAVE_LONG_LONG
1.26 typedef long long int64_t;
1.27 -# endif
1.28 typedef unsigned long long uint64_t;
1.29 #endif
1.30 +#endif
1.31
1.32 #ifndef __linux__
1.33 #define snprintf _snprintf