[libcxxabi] r284141 - [libcxxabi] Fix gcc build after r284128

Asiri Rathnayake via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 13 11:40:57 PDT 2016


Author: asiri
Date: Thu Oct 13 13:40:57 2016
New Revision: 284141

URL: http://llvm.org/viewvc/llvm-project?rev=284141&view=rev
Log:
[libcxxabi] Fix gcc build after r284128

NFC.

Modified:
    libcxxabi/trunk/src/config.h

Modified: libcxxabi/trunk/src/config.h
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/config.h?rev=284141&r1=284140&r2=284141&view=diff
==============================================================================
--- libcxxabi/trunk/src/config.h (original)
+++ libcxxabi/trunk/src/config.h Thu Oct 13 13:40:57 2016
@@ -16,6 +16,10 @@
 
 #include <unistd.h>
 
+#ifndef __has_attribute
+  #define __has_attribute(x) 0
+#endif
+
 // Configure inline visibility attributes
 #if defined(_WIN32)
  #if defined(_MSC_VER) && !defined(__clang__)




More information about the cfe-commits mailing list