summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorAhmad Fatoum <[email protected]>2018-04-07 22:29:53 +0200
committerAhmad Fatoum <[email protected]>2018-04-07 23:37:48 +0200
commit1841afad11892bab16976b976d69b7757b617c8b (patch)
tree865273c4b5a0e5574ef09f25f1f3320eafd794d9 /src/core.c
parentd88523f03abcf396a8a8198503285bc231828c81 (diff)
downloadraylib-1841afad11892bab16976b976d69b7757b617c8b.tar.gz
raylib-1841afad11892bab16976b976d69b7757b617c8b.zip
Refactor all #define SUPPORT_* into a config.h
That way, a user needs only to touch a single file to configure what features raylib is built with. Include guards are left out intentionally, because config.h should only be included in source files, not headers. Later on, config.h can also define the raylib version (#461).
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/core.c b/src/core.c
index e10494c1..0265afd0 100644
--- a/src/core.c
+++ b/src/core.c
@@ -48,7 +48,7 @@
* Mouse gestures are directly mapped like touches and processed by gestures system.
*
* #define SUPPORT_BUSY_WAIT_LOOP
-* Use busy wait loop for timming sync, if not defined, a high-resolution timer is setup and used
+* Use busy wait loop for timing sync, if not defined, a high-resolution timer is setup and used
*
* #define SUPPORT_GIF_RECORDING
* Allow automatic gif recording of current screen pressing CTRL+F12, defined in KeyCallback()
@@ -81,15 +81,7 @@
*
**********************************************************************************************/
-// Default configuration flags (supported features)
-//-------------------------------------------------
-#define SUPPORT_DEFAULT_FONT
-#define SUPPORT_MOUSE_GESTURES
-#define SUPPORT_CAMERA_SYSTEM
-#define SUPPORT_GESTURES_SYSTEM
-#define SUPPORT_BUSY_WAIT_LOOP
-#define SUPPORT_GIF_RECORDING
-//-------------------------------------------------
+#include "config.h"
#include "raylib.h"