Author: znek
Date: Sat Oct 11 14:44:05 2014
New Revision: 38113
URL: http://svn.gna.org/viewcvs/gnustep?rev=38113&view=rev
Log:
added UNAVAILABLE_ATTRIBUTE macro (OSX compatibility)
Modified:
libs/base/trunk/ChangeLog
libs/base/trunk/Headers/GNUstepBase/GSVersionMacros.h
Modified: libs/base/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/ChangeLog?rev=38113&r1=38112&r2=38113&view=diff
==============================================================================
--- libs/base/trunk/ChangeLog (original)
+++ libs/base/trunk/ChangeLog Sat Oct 11 14:44:05 2014
@@ -1,3 +1,7 @@
+2014-10-11 Marcus Mueller <[email protected]>
+
+ * Headers/GNUstepBase/GSVersionMacros.h: UNAVAILABLE_ATTRIBUTE added
+
2014-08-19 Wolfgang Lux <[email protected]>
* configure.ac:
Modified: libs/base/trunk/Headers/GNUstepBase/GSVersionMacros.h
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Headers/GNUstepBase/GSVersionMacros.h?rev=38113&r1=38112&r2=38113&view=diff
==============================================================================
--- libs/base/trunk/Headers/GNUstepBase/GSVersionMacros.h (original)
+++ libs/base/trunk/Headers/GNUstepBase/GSVersionMacros.h Sat Oct 11
14:44:05 2014
@@ -421,6 +421,13 @@
#define NS_REQUIRES_NIL_TERMINATION __attribute__((sentinel))
+// FIXME ... what exact version of clang and gcc?
+#if defined(__clang__) || GS_GCC_MINREQ(4,0)
+# define UNAVAILABLE_ATTRIBUTE __attribute__((unavailable))
+#else
+# define UNAVAILABLE_ATTRIBUTE
+#endif
+
/* Check if compiler supports @optional in protocols
*/
#if defined(__clang__) || GS_GCC_MINREQ(4,6)
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs