Skip to content

Commit

Permalink
Add libc++ support
Browse files Browse the repository at this point in the history
    
Similar patch was provided in
    
https://code.google.com/p/google-glog/issues/detail?id=121


git-svn-id: https://google-glog.googlecode.com/svn/trunk@142 eb4d4688-79bd-11dd-afb4-1d65580434c0
  • Loading branch information
shinh committed Mar 5, 2014
1 parent c856b92 commit 176f11c
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/stl_logging_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,26 @@

#ifdef HAVE_USING_OPERATOR

#ifdef __GNUC__
// 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
#endif

#include "glog/stl_logging.h"

#include <iostream>
#include <map>
#include <ostream>
#include <string>
#include <vector>

#ifdef __GNUC__
// C++0x isn't enabled by default in GCC and libc++ does not have
// non-standard ext/* and tr1/unordered_*.
# if defined(_LIBCPP_VERSION)
# define GLOG_STL_LOGGING_FOR_UNORDERED
# else
# define GLOG_STL_LOGGING_FOR_EXT_HASH
# define GLOG_STL_LOGGING_FOR_EXT_SLIST
# define GLOG_STL_LOGGING_FOR_TR1_UNORDERED
# endif
#endif

#include "glog/logging.h"
#include "glog/stl_logging.h"
#include "googletest.h"

using namespace std;
Expand Down

0 comments on commit 176f11c

Please sign in to comment.