Define std-related symbols in configure when using C++11 too
Even though we don't need to perform the checks for the availability of <unordered_map> or <type_traits> headers when using C++11 because we can safely assume they're indeed available, we still need to define the corresponding symbols, as if the checks were performed, so that the code inside and outside the library could test them in any case, whether we're using C++11 or not.
This commit is contained in:
14
configure
vendored
14
configure
vendored
@@ -19111,8 +19111,20 @@ if test "x$COMPAQCXX" = "xyes"; then
|
||||
CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
|
||||
fi
|
||||
|
||||
if test "$HAVE_CXX11" != "1" ; then
|
||||
if test "$HAVE_CXX11" = "1" ; then
|
||||
|
||||
$as_echo "#define HAVE_STD_WSTRING 1" >>confdefs.h
|
||||
|
||||
$as_echo "#define HAVE_STD_STRING_COMPARE 1" >>confdefs.h
|
||||
|
||||
$as_echo "#define HAVE_STD_UNORDERED_MAP 1" >>confdefs.h
|
||||
|
||||
$as_echo "#define HAVE_STD_UNORDERED_SET 1" >>confdefs.h
|
||||
|
||||
$as_echo "#define HAVE_TYPE_TRAITS 1" >>confdefs.h
|
||||
|
||||
|
||||
else
|
||||
|
||||
|
||||
ac_ext=cpp
|
||||
|
Reference in New Issue
Block a user