summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNikolas <[email protected]>2022-01-22 17:25:53 +0100
committerGitHub <[email protected]>2022-01-22 17:25:53 +0100
commit5b8b24c0c53288a94bfce7cc6e7eb21a9eee3f4a (patch)
tree3b0c1ca8fbd7c0a77f192543263cf304ee548bf5
parent45ef46c5e809e4dbfb2dfe2530350f05db7641b8 (diff)
downloadraylib-5b8b24c0c53288a94bfce7cc6e7eb21a9eee3f4a.tar.gz
raylib-5b8b24c0c53288a94bfce7cc6e7eb21a9eee3f4a.zip
Fix GetApplicationDirectory on macOS (#2304)
Previously failed to build with an implicit declaration of `_NSGetExecutablePath`.
-rw-r--r--src/rcore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rcore.c b/src/rcore.c
index eed63667..70cc350b 100644
--- a/src/rcore.c
+++ b/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