Fix compilation issues

This commit is contained in:
UnknownShadow200 2025-02-23 07:06:34 +11:00
parent 4b0ec476e3
commit 62caadf4c3

View File

@ -76,6 +76,9 @@ cc_bool Platform_ReadonlyFilesystem;
/* Really old mac OS versions don't have the dlopen/dlsym API */ /* Really old mac OS versions don't have the dlopen/dlsym API */
#define USE_NS_DYNLOAD_API #define USE_NS_DYNLOAD_API
#else #else
#ifndef __USE_GNU
#define __USE_GNU
#endif
#include <dlfcn.h> #include <dlfcn.h>
#endif #endif
@ -1246,7 +1249,7 @@ cc_result Updater_SetNewBuildTime(cc_uint64 timestamp) {
/*########################################################################################################################* /*########################################################################################################################*
*-------------------------------------------------------Dynamic lib-------------------------------------------------------* *-------------------------------------------------------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 */ /* Really old mac OS versions don't have the dlopen/dlsym API */
const cc_string DynamicLib_Ext = String_FromConst(".dylib"); const cc_string DynamicLib_Ext = String_FromConst(".dylib");