Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
-base tries to include <objc/blocks_runtime.h> with Apple runtime
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Graham Lee  
View profile  
 More options Jun 13 2012, 12:11 pm
Newsgroups: gnu.gnustep.bug
From: Graham Lee <INVALID.NORE...@gnu.org>
Date: Wed, 13 Jun 2012 16:11:04 +0000
Local: Wed, Jun 13 2012 12:11 pm
Subject: [bug #36650] -base tries to include <objc/blocks_runtime.h> with Apple runtime
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/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
lowell  
View profile  
 More options Jun 15 2012, 3:06 am
Newsgroups: gnu.gnustep.bug
From: lowell <INVALID.NORE...@gnu.org>
Date: Fri, 15 Jun 2012 07:06:21 +0000
Local: Fri, Jun 15 2012 3:06 am
Subject: [bug #36650] -base tries to include <objc/blocks_runtime.h> with Apple runtime
Follow-up Comment #1, bug #36650 (project gnustep):

+# ifndef _APPLE_
+# include <objc/blocks_runtime.h>
+# endif

The functions declared in that header are found in /usr/include/Block.h on the
Apple runtime. Maybe #include it #ifdef __APPLE__?

    _______________________________________________________

Reply to this item at:

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

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Graham Lee  
View profile  
 More options Jun 15 2012, 6:18 am
Newsgroups: gnu.gnustep.bug
From: Graham Lee <INVALID.NORE...@gnu.org>
Date: Fri, 15 Jun 2012 10:18:09 +0000
Local: Fri, Jun 15 2012 6:18 am
Subject: [bug #36650] -base tries to include <objc/blocks_runtime.h> with Apple runtime
Follow-up Comment #2, bug #36650 (project gnustep):

I found that there were no warnings about implicit functions when I didn't
include that file, so I think the header is probably already being included
elsewhere. I agree it could be safest to make
#include <Block.h>
explicit.

    _______________________________________________________

Reply to this item at:

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

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Frith-Macdonald  
View profile  
 More options Jul 8 2012, 11:01 am
Newsgroups: gnu.gnustep.bug
From: Richard Frith-Macdonald <INVALID.NORE...@gnu.org>
Date: Sun, 08 Jul 2012 15:01:11 +0000
Local: Sun, Jul 8 2012 11:01 am
Subject: [bug #36650] -base tries to include <objc/blocks_runtime.h> with Apple runtime
Update of bug #36650 (project gnustep):

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #3:

I altered the header to include Block.h rather than objc/blocks_runtime.h if
_APPLE_ is defined.

    _______________________________________________________

Reply to this item at:

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

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »