From e24276a35eb84a88b7f7a9349355ba614d4ad26e Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 31 Oct 2019 13:04:29 -0700 Subject: [PATCH] logging: Fix compilation with uClibc++ uClibc++ has compiler support for C++11, but not the functions. Signed-off-by: Rosen Penev --- src/glog/logging.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glog/logging.h.in b/src/glog/logging.h.in index 9968b96d3..ad0d2257b 100644 --- a/src/glog/logging.h.in +++ b/src/glog/logging.h.in @@ -1320,7 +1320,7 @@ inline void LogAtLevel(int const severity, std::string const &msg) { // reasonably good C++11 support, so we set LANG_CXX for it and // newer versions (_MSC_VER >= 1900). #if (defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L || \ - (defined(_MSC_VER) && _MSC_VER >= 1900)) + (defined(_MSC_VER) && _MSC_VER >= 1900)) && !defined(__UCLIBCXX_MAJOR__) // Helper for CHECK_NOTNULL(). // // In C++11, all cases can be handled by a single function. Since the value