summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorRay <[email protected]>2018-12-18 00:20:08 +0100
committerRay <[email protected]>2018-12-18 00:20:08 +0100
commitf822650a3b04643f5b15044a4c5ab2cb741aad9b (patch)
tree12a1cad6e6bc2c11f1883db4acf4fcfe55527167 /src/core.c
parentfe346fa8d8f013b06145424257b7403513555d93 (diff)
downloadraylib-f822650a3b04643f5b15044a4c5ab2cb741aad9b.tar.gz
raylib-f822650a3b04643f5b15044a4c5ab2cb741aad9b.zip
Support externally provided compilation flags
Useful in case raylib compilation want to be automated and compilation config flags provided by command line.
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index aa3bd528..af27c82d 100644
--- a/src/core.c
+++ b/src/core.c
@@ -87,9 +87,13 @@
*
**********************************************************************************************/
-#include "config.h" // Defines module configuration flags
#include "raylib.h" // Declares module functions
+// Check if config flags have been externally provided on compilation line
+#if !defined(EXTERNAL_CONFIG_FLAGS)
+ #include "config.h" // Defines module configuration flags
+#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.