Skip to content

Commit

Permalink
Don't undefine __STRICT_ANSI__ for mingw
Browse files Browse the repository at this point in the history
This was done originally to fix #785. However, since gcc 11.1.0, this
gives a warning:
__STRICT_ANSI__ seems to have been undefined; this is not supported

Due to this change:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;f=libstdc%2B%2B-v3/include/bits/c%2B%2Bconfig;h=767537a8b027bcb5807bb45b0268c5da98c2c7a0

The original issue no longer happens with mingw-w64. The original mingw
project is outdated (and 32 bit only) it is safe remove this flag now.
  • Loading branch information
tobil4sk committed Jun 25, 2024
1 parent fcfca29 commit f3e1b96
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion toolchain/mingw-toolchain.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
<flag value="-DHX_WINDOWS"/>
<flag value="-DHXCPP_BIG_ENDIAN" if="HXCPP_BIG_ENDIAN"/>
<cppflag value="-std=c++11" if="HXCPP_CPP11" />
<cppflag value="-U__STRICT_ANSI__" />
<flag value="-m32" unless="HXCPP_M64"/>
<flag value="-m64" if="HXCPP_M64"/>
<flag value="-DHXCPP_M64" if="HXCPP_M64"/>
Expand Down

0 comments on commit f3e1b96

Please sign in to comment.