Fix libcxx build with glibc 2.26+ by removing xlocale.h include.
authorEric Fiselier <eric@efcs.ca>
Thu, 3 Aug 2017 04:28:10 +0000 (04:28 +0000)
committerEric Fiselier <eric@efcs.ca>
Thu, 3 Aug 2017 04:28:10 +0000 (04:28 +0000)
Patch by Khem Raj. Reviewed as D35697. Also see PR33729.

llvm-svn: 309920

libcxx/include/__locale

index 7668422..91ed9e7 100644 (file)
@@ -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__)