bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #39081] Build error testing for blocks runtime on Mac OS X


From: Graham Lee
Subject: [bug #39081] Build error testing for blocks runtime on Mac OS X
Date: Mon, 27 May 2013 16:25:40 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/536.29.13 (KHTML, like Gecko) Version/6.0.4 Safari/536.29.13

URL:
  <http://savannah.gnu.org/bugs/?39081>

                 Summary: Build error testing for blocks runtime on Mac OS X
                 Project: GNUstep
            Submitted by: leeg
            Submitted on: Mon 27 May 2013 04:25:39 PM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

As the diff shows, -base is checking for the wrong platform compatibility
macro.

--- a/Headers/GNUstepBase/GSVersionMacros.h
+++ b/Headers/GNUstepBase/GSVersionMacros.h
@@ -313,7 +313,7 @@ static inline void gs_consumed(id NS_CONSUMED
GS_UNUSED_ARG o) { return; }
  */
 #if __has_feature(blocks)
 #  if  OBJC2RUNTIME
-#    if defined(_APPLE_)
+#    if defined(__APPLE__)
 #      include <Block.h>
 #    else
 #      include <objc/blocks_runtime.h>





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39081>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]