summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2023-01-10 12:20:45 +0100
committerRay <[email protected]>2023-01-10 12:20:45 +0100
commit6dd1d2d9316c2d665c02d45bd0677150352ed9d3 (patch)
tree0dd92cccc7ff0f8e5677c68d4e7776e381b0a0b8 /src
parentbba6ae562238299f07b7f83f1278fc279eb21fd5 (diff)
downloadraylib-6dd1d2d9316c2d665c02d45bd0677150352ed9d3.tar.gz
raylib-6dd1d2d9316c2d665c02d45bd0677150352ed9d3.zip
ADDED: Required define on Linux #2729
Diffstat (limited to 'src')
-rw-r--r--src/rcore.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rcore.c b/src/rcore.c
index da943657..2d68606d 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -155,6 +155,9 @@
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 199309L // Required for: CLOCK_MONOTONIC if compiled with c99 without gnu ext.
#endif
+#if defined(__linux__) && !defined(_GNU_SOURCE)
+ #define _GNU_SOURCE
+#endif
// Platform specific defines to handle GetApplicationDirectory()
#if defined (PLATFORM_DESKTOP)