mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
remove the workarund for clang/unistd.h clash with __blocks
This commit is contained in:
parent
2e07244f8e
commit
c8cfcec652
2 changed files with 6 additions and 10 deletions
|
@ -1,3 +1,9 @@
|
|||
2020-02-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/Foundation/NSXPCConnection.h: remove unistd.h since
|
||||
workaround broke blocks code. I guess we have to hope that
|
||||
sys/types.h has gid_t, pid_t, and uid_t on all systems we target.
|
||||
|
||||
2020-02-08 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Examples/dictionary.m:
|
||||
|
|
|
@ -29,16 +29,6 @@
|
|||
#include <Foundation/NSError.h>
|
||||
|
||||
#include <sys/types.h> // for gid_t and uid_t
|
||||
/* Some versions of unistd.h use __block, but that's a reserved word
|
||||
* for Clang so we temporarily redefine it while including the file.
|
||||
*/
|
||||
#ifdef __block
|
||||
#undef __block
|
||||
#endif
|
||||
#define __block __gs_unistd_block
|
||||
#include <unistd.h> // for gid_t and uid_t
|
||||
#undef __block
|
||||
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_8, GS_API_LATEST)
|
||||
|
||||
|
|
Loading…
Reference in a new issue