[libcxx] r309920 - Fix libcxx build with glibc 2.26+ by removing xlocale.h include.
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 2 21:28:10 PDT 2017
Author: ericwf
Date: Wed Aug 2 21:28:10 2017
New Revision: 309920
URL: http://llvm.org/viewvc/llvm-project?rev=309920&view=rev
Log:
Fix libcxx build with glibc 2.26+ by removing xlocale.h include.
Patch by Khem Raj. Reviewed as D35697. Also see PR33729.
Modified:
libcxx/trunk/include/__locale
Modified: libcxx/trunk/include/__locale
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__locale?rev=309920&r1=309919&r2=309920&view=diff
==============================================================================
--- libcxx/trunk/include/__locale (original)
+++ libcxx/trunk/include/__locale Wed Aug 2 21:28:10 2017
@@ -34,7 +34,7 @@
# include <support/solaris/xlocale.h>
#elif defined(_NEWLIB_VERSION)
# include <support/newlib/xlocale.h>
-#elif (defined(__GLIBC__) || defined(__APPLE__) || defined(__FreeBSD__) \
+#elif (defined(__APPLE__) || defined(__FreeBSD__) \
|| defined(__EMSCRIPTEN__) || defined(__IBMCPP__))
# include <xlocale.h>
#elif defined(__Fuchsia__)
More information about the cfe-commits
mailing list