diff --git a/src/Platform_Posix.c b/src/Platform_Posix.c index a9ddfdb90..e463e4e73 100644 --- a/src/Platform_Posix.c +++ b/src/Platform_Posix.c @@ -76,6 +76,9 @@ cc_bool Platform_ReadonlyFilesystem; /* Really old mac OS versions don't have the dlopen/dlsym API */ #define USE_NS_DYNLOAD_API #else + #ifndef __USE_GNU + #define __USE_GNU + #endif #include #endif @@ -1246,7 +1249,7 @@ cc_result Updater_SetNewBuildTime(cc_uint64 timestamp) { /*########################################################################################################################* *-------------------------------------------------------Dynamic lib-------------------------------------------------------* *#########################################################################################################################*/ -#if USE_NS_DYNLOAD_API +#if defined USE_NS_DYNLOAD_API /* Really old mac OS versions don't have the dlopen/dlsym API */ const cc_string DynamicLib_Ext = String_FromConst(".dylib");