From f822650a3b04643f5b15044a4c5ab2cb741aad9b Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 18 Dec 2018 00:20:08 +0100 Subject: Support externally provided compilation flags Useful in case raylib compilation want to be automated and compilation config flags provided by command line. --- src/core.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/core.c') 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. -- cgit v1.2.3