WIN32: Enable GNU extensions for mingw
This way old mingw gets its __argc and __argv. Using gnu++11 instead of undefining __STRICT_ANSI__ makes GCC11 happy. Closes #3473
This commit is contained in:
parent
af7500a06b
commit
ded4ab6c23
2 changed files with 1 additions and 3 deletions
|
@ -22,8 +22,6 @@
|
||||||
|
|
||||||
// Disable symbol overrides so that we can use system headers.
|
// Disable symbol overrides so that we can use system headers.
|
||||||
#define FORBIDDEN_SYMBOL_ALLOW_ALL
|
#define FORBIDDEN_SYMBOL_ALLOW_ALL
|
||||||
// HACK: Mingw32 doesn't define _argc _argv in strict ANSI mode
|
|
||||||
#undef __STRICT_ANSI__
|
|
||||||
|
|
||||||
#include "common/scummsys.h"
|
#include "common/scummsys.h"
|
||||||
|
|
||||||
|
|
2
configure
vendored
2
configure
vendored
|
@ -2180,7 +2180,7 @@ if test "$have_gcc" = yes ; then
|
||||||
std_variant=gnu++
|
std_variant=gnu++
|
||||||
pedantic=no
|
pedantic=no
|
||||||
;;
|
;;
|
||||||
amigaos* | dreamcast | ds | mint* | n64 | ps3 | psp2)
|
amigaos* | dreamcast | ds | mingw* | mint* | n64 | ps3 | psp2)
|
||||||
std_variant=gnu++
|
std_variant=gnu++
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue