mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 09:31:07 +00:00
add comment about clang __block workaround
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33996 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3312c2634a
commit
2b1ff67600
1 changed files with 4 additions and 0 deletions
|
@ -47,6 +47,10 @@
|
||||||
#import "Foundation/NSBundle.h"
|
#import "Foundation/NSBundle.h"
|
||||||
#import "GNUstepBase/NSBundle+GNUstepBase.h"
|
#import "GNUstepBase/NSBundle+GNUstepBase.h"
|
||||||
|
|
||||||
|
/* We need to wrap unistd.h because it is used throughout the code and some
|
||||||
|
* versions include __block as a variable name, and clang now defines that
|
||||||
|
* as a reserved workd :-(
|
||||||
|
*/
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
#define __block __gs_unistd_block
|
#define __block __gs_unistd_block
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue