diff options
author | Colin Snover | 2018-01-30 19:27:48 -0600 |
---|---|---|
committer | Eugene Sandulenko | 2018-02-09 14:26:42 +0100 |
commit | f3f508882430221f26d346d532434bf14da9e503 (patch) | |
tree | b80b61c5d6773cb94139a086df02bef165463ac6 /backends | |
parent | e048a40fbc8813987943f698b2c703a651011a76 (diff) | |
download | scummvm-rg350-f3f508882430221f26d346d532434bf14da9e503.tar.gz scummvm-rg350-f3f508882430221f26d346d532434bf14da9e503.tar.bz2 scummvm-rg350-f3f508882430221f26d346d532434bf14da9e503.zip |
SDL: Do not try to replace FILE with an incompatible type
It’s questionable that the SDL backend code is trying so hard to
maintain forbidden symbols at all since backend code is exactly
where such things are allowed, and it is a game of whack-a-mole
to keep system API changes from breaking this fragile system of
symbol redefinitions. Probably this should all just get replaced
with a FORBIDDEN_SYMBOL_ALLOW_ALL, but for the time being this at
least gets builds working again on up-to-date msys2/mingw-w64
compilers.
Fixes Trac#10405.
Diffstat (limited to 'backends')
-rw-r--r-- | backends/platform/sdl/sdl-sys.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/backends/platform/sdl/sdl-sys.h b/backends/platform/sdl/sdl-sys.h index 9ebd123bb4..9b87f5eabd 100644 --- a/backends/platform/sdl/sdl-sys.h +++ b/backends/platform/sdl/sdl-sys.h @@ -31,15 +31,8 @@ #include "common/scummsys.h" -// Remove FILE override from common/forbidden.h, and replace -// it with an alternate slightly less unfriendly override. #if !defined(FORBIDDEN_SYMBOL_ALLOW_ALL) && !defined(FORBIDDEN_SYMBOL_EXCEPTION_FILE) #undef FILE -// Solaris has typedef __FILE FILE in several places already -#if !defined(__sun) -typedef struct { int FAKE; } FAKE_FILE; -#define FILE FAKE_FILE -#endif // (__sun) #endif #if !defined(FORBIDDEN_SYMBOL_ALLOW_ALL) && !defined(FORBIDDEN_SYMBOL_EXCEPTION_strcasecmp) |