mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
added Quentin's fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34006 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e3588d2fc0
commit
ecaeb486d5
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-10-15 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/common.h: Added Quentin's fix to get Clang to compile this
|
||||
without warnings.
|
||||
|
||||
2011-10-15 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/ObjectiveC2/NSBlocks.m:
|
||||
|
|
|
@ -49,9 +49,12 @@
|
|||
|
||||
/* 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 :-(
|
||||
* as a reserved word :-(
|
||||
*/
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#ifdef __block
|
||||
/* Turn off Clang built-in __block */
|
||||
#undef __block
|
||||
#define __block __gs_unistd_block
|
||||
#include <unistd.h>
|
||||
#undef __block
|
||||
|
|
Loading…
Reference in a new issue