Support external config flags

This commit is contained in:
Ray
2019-03-12 16:00:26 +01:00
parent 76e968f6b7
commit 477ea4d660
4 changed files with 25 additions and 3 deletions

View File

@@ -563,7 +563,10 @@ int GetPixelDataSize(int width, int height, int format);// Get pixel data size i
#define SUPPORT_VR_SIMULATOR
#define SUPPORT_DISTORTION_SHADER
#else
#include "config.h" // rlgl module configuration
// Check if config flags have been externally provided on compilation line
#if !defined(EXTERNAL_CONFIG_FLAGS)
#include "config.h" // Defines module configuration flags
#endif
#endif
#include <stdio.h> // Required for: fopen(), fclose(), fread()... [Used only on LoadText()]