scons: workaround for msys2's build's of sdl "#define main" breaking non-sdl checks

(cherry-picked from commit 2bc7cc3e6106d089f168510a2a12cc53bfd48007)
This commit is contained in:
loonycyborg 2018-06-01 20:26:07 +03:00
parent d665a8810d
commit e54aa76700

View File

@ -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()
{
}