summaryrefslogtreecommitdiffhomepage
path: root/src/text.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/text.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/text.c')
-rw-r--r--src/text.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/text.c b/src/text.c
index d053be30..1a9d386a 100644
--- a/src/text.c
+++ b/src/text.c
@@ -6,7 +6,7 @@
*
* #define SUPPORT_FILEFORMAT_FNT
* #define SUPPORT_FILEFORMAT_TTF
-* Selected desired fileformats to be supported for loading. Some of those formats are
+* Selected desired fileformats to be supported for loading. Some of those formats are
* supported by default, to remove support, just comment unrequired #define in this module
*
* #define SUPPORT_DEFAULT_FONT
@@ -36,12 +36,7 @@
*
**********************************************************************************************/
-// Default supported features
-//-------------------------------------
-#define SUPPORT_DEFAULT_FONT
-#define SUPPORT_FILEFORMAT_FNT
-#define SUPPORT_FILEFORMAT_TTF
-//-------------------------------------
+#include "config.h"
#include "raylib.h"