Skip to content

Instantly share code, notes, and snippets.

@tcard
Created January 21, 2014 11:03
Show Gist options
  • Save tcard/8538091 to your computer and use it in GitHub Desktop.
Save tcard/8538091 to your computer and use it in GitHub Desktop.
Index: src/stl_logging_unittest.cc
===================================================================
--- src/stl_logging_unittest.cc (revision 136)
+++ src/stl_logging_unittest.cc (working copy)
@@ -31,17 +31,20 @@
#ifdef HAVE_USING_OPERATOR
-#ifdef __GNUC__
+#include <iostream>
+
+#if defined(__GLIBCPP__) || defined(__GLIBCXX__)
// C++0x isn't enabled by default.
// # define GLOG_STL_LOGGING_FOR_UNORDERED
# define GLOG_STL_LOGGING_FOR_TR1_UNORDERED
# define GLOG_STL_LOGGING_FOR_EXT_HASH
# define GLOG_STL_LOGGING_FOR_EXT_SLIST
+#elif defined(_LIBCPP_VERSION)
+# define GLOG_STL_LOGGING_FOR_UNORDERED
#endif
#include "glog/stl_logging.h"
-#include <iostream>
#include <map>
#include <ostream>
#include <string>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment