mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-13 13:45:46 +00:00
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:
parent
d665a8810d
commit
e54aa76700
@ -106,6 +106,10 @@ def CheckBoost(context, boost_lib, require_version = None, header_only = False):
|
|||||||
\n"""
|
\n"""
|
||||||
|
|
||||||
test_program += """
|
test_program += """
|
||||||
|
// Workaround for sdl #defining main breaking non sdl programs
|
||||||
|
#ifdef main
|
||||||
|
#undef main
|
||||||
|
#endif
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user