Author: rfm
Date: Wed Nov 4 18:55:05 2015
New Revision: 39151
URL: http://svn.gna.org/viewcvs/gnustep?rev=39151&view=rev
Log:
add __has_extension
Modified:
libs/base/trunk/Headers/GNUstepBase/GSConfig.h.in
Modified: libs/base/trunk/Headers/GNUstepBase/GSConfig.h.in
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Headers/GNUstepBase/GSConfig.h.in?rev=39151&r1=39150&r2=39151&view=diff
==============================================================================
--- libs/base/trunk/Headers/GNUstepBase/GSConfig.h.in (original)
+++ libs/base/trunk/Headers/GNUstepBase/GSConfig.h.in Wed Nov 4 18:55:05 2015
@@ -276,6 +276,17 @@
# define __has_builtin(x) 0
#endif
+/*
+ * __has_extension has slightly different semantics from __has_feature.
+ * It evaluates to true if the feature is supported by by clang for the
+ * current compilation unit (language and -f switches), regardless of
+ * whether it is part of the language standard or just a (non-standard)
+ * extension.
+ */
+#ifndef __has_extension
+# define __has_extension(x) __has_feature(x)
+#endif
+
#if defined(__WIN32__)
#define BOOL WinBOOL
#include <w32api.h>
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs