Skip to content

Commit

Permalink
scons: workaround for msys2's build's of sdl "#define main" breaking …
Browse files Browse the repository at this point in the history
…non-sdl checks
  • Loading branch information
loonycyborg committed Jun 2, 2018
1 parent 5adb931 commit 2bc7cc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scons/boost.py
Expand Up @@ -106,6 +106,10 @@ def CheckBoost(context, boost_lib, require_version = None, header_only = False):
\n"""

test_program += """
// Workaround for sdl #defining main breaking non sdl programs
#ifdef main
#undef main
#endif
int main()
{
}
Expand Down

0 comments on commit 2bc7cc3

Please sign in to comment.