diff --git a/sourcemm/oslink.h b/sourcemm/oslink.h index 72d4791..2317318 100644 --- a/sourcemm/oslink.h +++ b/sourcemm/oslink.h @@ -21,13 +21,12 @@ #define OS_WIN32 #if defined _MSC_VER && _MSC_VER >= 1400 #undef ARRAYSIZE + #else + #define mkdir(a) _mkdir(a) #endif #include #include #include - #ifndef mkdir - #define mkdir(a) _mkdir(a) - #endif #define dlmount(x) LoadLibrary(x) #define dlsym(x, s) GetProcAddress(x, s) #define dlclose(x) FreeLibrary(x) diff --git a/sourcemm/sample_mm/oslink.h b/sourcemm/sample_mm/oslink.h index f2c5445..55e5f89 100644 --- a/sourcemm/sample_mm/oslink.h +++ b/sourcemm/sample_mm/oslink.h @@ -21,13 +21,12 @@ #define OS_WIN32 #if defined _MSC_VER && _MSC_VER >= 1400 #undef ARRAYSIZE + #else + #define mkdir(a) _mkdir(a) #endif #include #include #include - #ifndef mkdir - #define mkdir(a) _mkdir(a) - #endif #define dlmount(x) LoadLibrary(x) #define dlsym(x, s) GetProcAddress(x, s) #define dlclose(x) FreeLibrary(x)