summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-07-30 12:14:31 +0200
committerraysan5 <[email protected]>2021-07-30 12:14:31 +0200
commit1cc25d1a2d272202750c6250e84d4dfa87f5d845 (patch)
treefbb1883d6c08eaa5e6866b918bc7afe3db01d12c /src/core.c
parentbd70a224127207e1483eda4538cc482c9c7f49a0 (diff)
downloadraylib-1cc25d1a2d272202750c6250e84d4dfa87f5d845.tar.gz
raylib-1cc25d1a2d272202750c6250e84d4dfa87f5d845.zip
Review include path that was breaking the build
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core.c b/src/core.c
index 5e46d2c6..8ccc1e08 100644
--- a/src/core.c
+++ b/src/core.c
@@ -121,11 +121,6 @@
#include "utils.h" // Required for: TRACELOG() macros
-#if (defined(__linux__) || defined(PLATFORM_WEB)) && _POSIX_C_SOURCE < 199309L
- #undef _POSIX_C_SOURCE
- #define _POSIX_C_SOURCE 199309L // Required for: CLOCK_MONOTONIC if compiled with c99 without gnu ext.
-#endif
-
#define RLGL_IMPLEMENTATION
#include "rlgl.h" // OpenGL abstraction layer to OpenGL 1.1, 3.3+ or ES2
@@ -159,6 +154,11 @@
#include "external/sdefl.h" // Deflate (RFC 1951) compressor
#endif
+#if (defined(__linux__) || defined(PLATFORM_WEB)) && _POSIX_C_SOURCE < 199309L
+ #undef _POSIX_C_SOURCE
+ #define _POSIX_C_SOURCE 199309L // Required for: CLOCK_MONOTONIC if compiled with c99 without gnu ext.
+#endif
+
#include <stdlib.h> // Required for: srand(), rand(), atexit()
#include <stdio.h> // Required for: sprintf() [Used in OpenURL()]
#include <string.h> // Required for: strrchr(), strcmp(), strlen()