[PATCH] D13010: Verify that we have GLIBC before using the __GLIBC_PREREC macro.

Vasileios Kalintiris via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 04:10:03 PDT 2015


vkalintiris created this revision.
vkalintiris added a reviewer: mclow.lists.
vkalintiris added a subscriber: llvm-commits.

http://reviews.llvm.org/D13010

Files:
  include/__config

Index: include/__config
===================================================================
--- include/__config
+++ include/__config
@@ -367,6 +367,7 @@
 #elif defined(__ANDROID__)
 #define _LIBCPP_HAS_QUICK_EXIT
 #elif defined(__linux__)
+#if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
 #include <features.h>
 #if __GLIBC_PREREQ(2, 15)
 #define _LIBCPP_HAS_QUICK_EXIT
@@ -376,6 +377,7 @@
 #endif
 #endif
 #endif
+#endif
 
 #if (__has_feature(cxx_noexcept))
 #  define _NOEXCEPT noexcept


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13010.35229.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150921/200e7bb2/attachment.bin>


More information about the llvm-commits mailing list