diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-07-11 12:12:19 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-07-11 12:12:19 -0400 |
commit | 6ae9c055ccbcab97f07410590ed359e5726638b5 (patch) | |
tree | a9e84c1e10f0b0a830f2aa9e456b28a5d4fed499 /config_cxx.h | |
parent | f0d79177194ff0b9cfcdc1863b56eb1ab1a4ae8b (diff) | |
download | cryptopp-git-6ae9c055ccbcab97f07410590ed359e5726638b5.tar.gz |
Move CRYPTOPP_CXX11 down in list of defines
Diffstat (limited to 'config_cxx.h')
-rw-r--r-- | config_cxx.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/config_cxx.h b/config_cxx.h index b5255ec1..34e6503f 100644 --- a/config_cxx.h +++ b/config_cxx.h @@ -35,13 +35,6 @@ # define __has_feature(x) 0
#endif
-// C++11 macro version, https://stackoverflow.com/q/7223991/608639
-#if !defined(CRYPTOPP_NO_CXX11)
-# if ((_MSC_VER >= 1600) || (__cplusplus >= 201103L)) && !defined(_STLPORT_VERSION)
-# define CRYPTOPP_CXX11 1
-# endif
-#endif
-
// Define CRYPTOPP_NO_CXX11 to avoid C++11 related features shown at the
// end of this file. Some compilers and standard C++ headers advertise C++11
// but they are really just C++03 with some additional C++11 headers and
@@ -56,6 +49,13 @@ // this file. At the moment it should only affect std::uncaught_exceptions.
// #define CRYPTOPP_NO_CXX17 1
+// C++11 macro version, https://stackoverflow.com/q/7223991/608639
+#if !defined(CRYPTOPP_NO_CXX11)
+# if ((_MSC_VER >= 1600) || (__cplusplus >= 201103L)) && !defined(_STLPORT_VERSION)
+# define CRYPTOPP_CXX11 1
+# endif
+#endif
+
// Hack ahead. Apple's standard library does not have C++'s unique_ptr in C++11.
// We can't test for unique_ptr directly because some of the non-Apple Clangs
// on OS X fail the same way. However, modern standard libraries have
|