bug-gnustep
[Top][All Lists]
Advanced

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

[bug #36650] -base tries to include <objc/blocks_runtime.h> with Apple r


From: Graham Lee
Subject: [bug #36650] -base tries to include <objc/blocks_runtime.h> with Apple runtime
Date: Wed, 13 Jun 2012 16:11:04 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8) AppleWebKit/536.15 (KHTML, like Gecko) Version/6.0 Safari/536.16

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

                 Summary: -base tries to include <objc/blocks_runtime.h> with
Apple runtime
                 Project: GNUstep
            Submitted by: leeg
            Submitted on: Wed 13 Jun 2012 04:11:03 PM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

There is no file <objc/blocks_runtime.h> in the Apple runtime. This problem
can be fixed with the following patch:

$ svn diff
Index: core/base/Headers/GNUstepBase/GSVersionMacros.h
===================================================================
--- core/base/Headers/GNUstepBase/GSVersionMacros.h     (revision 35202)
+++ core/base/Headers/GNUstepBase/GSVersionMacros.h     (working copy)
@@ -284,7 +284,9 @@
  */
 #if __has_feature(blocks)
 #  if  OBJC2RUNTIME
-#    include <objc/blocks_runtime.h>
+#    ifndef __APPLE__
+#      include <objc/blocks_runtime.h>
+#    endif
 #  else
 #    include <ObjectiveC2/blocks_runtime.h>
 #  endif





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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