Graham Lee | 13 Jun 2012 18:11
Picon

[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)
 <at>  <at>  -284,7 +284,9  <at>  <at> 
(Continue reading)

lowell | 15 Jun 2012 09:06
Picon

[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/
Graham Lee | 15 Jun 2012 12:18
Picon

[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/
Richard Frith-Macdonald | 8 Jul 2012 17:01
Picon

[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/

Gmane