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 5adb931b2a
commit 2bc7cc3e61

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