billyquith / ponder

C++ reflection library with Lua binding, and JSON and XML serialisation.
http://billyquith.github.io/ponder/
Other
633 stars 92 forks source link

Fix __STRICT_ANSI__ related compile error (missing strcmpcase) on MinGW using C++11 #112

Closed leomeyer closed 5 years ago

leomeyer commented 5 years ago

Hi, I tried Ponder today with MinGW (mingw32-gcc (tdm-1) 5.1.0) which was the version supplied with the latest Code::Blocks IDE. Apparently, when using C++11 MinGW defines __STRICT_ANSI__ which causes strcmpcase to be missing, failing the build of util.cpp. I have tried to fix this by explicitly checking for the combination of MinGW and C++11 and it seems to work for me at least, so I'd kindly ask you to review the fix. Regards, Leo

billyquith commented 5 years ago

Thanks for the fix.