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:
Richard Frith-MacDonald 2011-10-15 18:41:24 +00:00
parent e3588d2fc0
commit ecaeb486d5
2 changed files with 9 additions and 1 deletions

View file

@ -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:

View file

@ -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