浏览代码

Fix GetApplicationDirectory on macOS (#2304)

Previously failed to build with an implicit declaration of `_NSGetExecutablePath`.
Nikolas 3 年之前
父节点
当前提交
5b8b24c0c5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/rcore.c

+ 1 - 0
src/rcore.c

@@ -173,6 +173,7 @@
         #include <unistd.h>
     #elif defined(__APPLE__)
         #include <sys/syslimits.h>
+        #include <mach-o/dyld.h>
     #endif // OSs
 #endif // PLATFORM_DESKTOP