remove the workarund for clang/unistd.h clash with __blocks

This commit is contained in:
Richard Frith-Macdonald 2020-02-11 17:11:30 +00:00
parent 2e07244f8e
commit c8cfcec652
2 changed files with 6 additions and 10 deletions

View file

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

View file

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