do not redefine stl logging macros
authorSergiu Dotenco <sergiu.dotenco@th-nuernberg.de>
Thu, 26 Mar 2015 14:58:01 +0000 (15:58 +0100)
committerSergiu Dotenco <sergiu.dotenco@gmail.com>
Wed, 15 Jul 2015 20:34:58 +0000 (22:34 +0200)
src/stl_logging_unittest.cc

index 20f23b3..63e28a1 100644 (file)
 // C++0x isn't enabled by default in GCC and libc++ does not have
 // non-standard ext/* and tr1/unordered_*.
 # if defined(_LIBCPP_VERSION)
+#  ifndef GLOG_STL_LOGGING_FOR_UNORDERED
 #  define GLOG_STL_LOGGING_FOR_UNORDERED
+#  endif
 # else
+#  ifndef GLOG_STL_LOGGING_FOR_EXT_HASH
 #  define GLOG_STL_LOGGING_FOR_EXT_HASH
+#  endif
+#  ifndef GLOG_STL_LOGGING_FOR_EXT_SLIST
 #  define GLOG_STL_LOGGING_FOR_EXT_SLIST
+#  endif
+#  ifndef GLOG_STL_LOGGING_FOR_TR1_UNORDERED
 #  define GLOG_STL_LOGGING_FOR_TR1_UNORDERED
+#  endif
 # endif
 #endif