Remind devs how to test if new code compiles as C++11. Remember that by C++ standard, C++14 can be detected using the __cplusplus macro

This commit is contained in:
Jonathan Campbell
2020-11-02 01:10:38 -08:00
parent de6de785a1
commit 2f21e54239

View File

@@ -155,6 +155,7 @@ elif test x$force_cxx11 = xyes; then
CFLAGS="$CFLAGS -std=gnu11";
CXXFLAGS="$CXXFLAGS -std=gnu++11";
else
AC_MSG_WARN([ DOSBox-X is still intended to support compilation as C++11. If you add new code please make sure it works as C++11 by running ./configure with --enable-force-cxx11 ])
CFLAGS="$CFLAGS -std=gnu11"; # no such "gnu14"
CXXFLAGS="$CXXFLAGS -std=gnu++14";
fi