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

This commit is contained in:
loonycyborg 2018-06-01 20:26:07 +03:00
parent 1a18d698ae
commit 9e4a76096b

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