Work around inconsistent header inclusion.

Overriding headers has always been risky, and finally we see why.

Apparently on iOS, files may be compiled in such a way that the original
SDL_config.h file is included, not Lime's custom one. It's hard to do
anything more than we've already done to manage include order, so we
need to find another option.

One such option is to make the two files as similar as possible, such
that it usually doesn't matter which one ends up being included. Then we
only set `USING_GENERATED_CONFIG_H` when it really matters.
This commit is contained in:
Joseph Cloutier
2022-05-27 03:59:43 -04:00
parent 03f5dcbf82
commit 821638ae34
2 changed files with 5 additions and 3 deletions

View File

@@ -39,10 +39,12 @@
#include "SDL_config_iphoneos.h"
#elif defined(__ANDROID__)
#include "SDL_config_android.h"
#elif defined(__PSP__)
#include "SDL_config_psp.h"
#elif defined(__OS2__)
#include "SDL_config_os2.h"
#elif defined(__EMSCRIPTEN__)
#include "SDL_config_emscripten.h"
#elif defined(__NGAGE__)
#include "SDL_config_ngage.h"
#elif defined(RASPBERRYPI)
#include "SDL_config_rpi.h"
#elif defined(HX_LINUX)