scons: workaround for msys2's build's of sdl "#define main" breaking non-sdl checks
This commit is contained in:
parent
1a18d698ae
commit
9e4a76096b
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue