| Summary: | x64 build of SDL_platform.h throws up error "missing binary operator before token "("" | ||
|---|---|---|---|
| Product: | SDL | Reporter: | mattreecebentley |
| Component: | timer | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.3 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 7 | ||
By the way, this only shows up if you compile in debug mode, not release ie. -O2. Is this still active with the latest toolchain and SDL snapshot? http://www.libsdl.org/tmp/SDL-2.0.zip Thanks! I can't reproduce this with v2.04, so consider it fixed :) Great, thanks! |
Under x64 SDL 2.03 only (x86 works fine), including sdltimer.h creates the following error under mingw TDM 5.1 x64: In file included from d:/programming/SDLx64/include/SDL2/SDL_config.h:25:0, from d:/programming/SDLx64/include/SDL2/SDL_stdinc.h:31, from d:/programming/SDLx64/include/SDL2/SDL_timer.h:31, from demo.cpp:19: d:/programming/SDLx64/include/SDL2/SDL_platform.h:122:28: error: missing binary operator before token "(" #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) ^ d:/programming/SDLx64/include/SDL2/SDL_platform.h:126:30: error: missing binary operator before token "(" #elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) ^ Reverting build configuration to the x86 SDL2 build removes the problem.