[libcxx] r180683 - GCC doesn't support __has_attribute.
Joerg Sonnenberger
joerg at bec.de
Sat Apr 27 13:51:42 PDT 2013
Author: joerg
Date: Sat Apr 27 15:51:42 2013
New Revision: 180683
URL: http://llvm.org/viewvc/llvm-project?rev=180683&view=rev
Log:
GCC doesn't support __has_attribute.
Modified:
libcxx/trunk/include/__config
Modified: libcxx/trunk/include/__config
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__config?rev=180683&r1=180682&r2=180683&view=diff
==============================================================================
--- libcxx/trunk/include/__config (original)
+++ libcxx/trunk/include/__config Sat Apr 27 15:51:42 2013
@@ -135,6 +135,10 @@
#endif // _WIN32
+#ifndef __has_attribute
+#define __has_attribute(__x) 0
+#endif
+
#ifndef _LIBCPP_HIDDEN
#define _LIBCPP_HIDDEN __attribute__ ((__visibility__("hidden")))
#endif
More information about the cfe-commits
mailing list