We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3095 - x64 build of SDL_platform.h throws up error "missing binary operator before token "(""
Summary: x64 build of SDL_platform.h throws up error "missing binary operator before t...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: timer (show other bugs)
Version: 2.0.3
Hardware: x86_64 Windows 7
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-15 10:10 UTC by mattreecebentley
Modified: 2017-08-14 03:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mattreecebentley 2015-08-15 10:10:50 UTC
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.
Comment 1 mattreecebentley 2015-09-14 04:07:42 UTC
By the way, this only shows up if you compile in debug mode, not release ie. -O2.
Comment 2 Sam Lantinga 2017-08-12 23:24:42 UTC
Is this still active with the latest toolchain and SDL snapshot?
http://www.libsdl.org/tmp/SDL-2.0.zip

Thanks!
Comment 3 mattreecebentley 2017-08-13 23:07:31 UTC
I can't reproduce this with v2.04, so consider it fixed :)
Comment 4 Sam Lantinga 2017-08-14 03:16:26 UTC
Great, thanks!