[Bug libc/11157] __block is a reserved word with clang -fblocks
mark at heily dot com
sourceware-bugzilla@sourceware.org
Tue Dec 27 02:42:00 GMT 2011
http://sourceware.org/bugzilla/show_bug.cgi?id=11157
Mark Heily <mark at heily dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at heily dot com
--- Comment #6 from Mark Heily <mark at heily dot com> 2011-12-27 02:41:15 UTC ---
A better workaround is to override /usr/include/unistd.h with your own private
copy. See below for an example that you could include into your project source
tree as 'unistd.h'.
/*
Credit:
David Chisnall
http://comments.gmane.org/gmane.comp.desktop.etoile.devel/1556
*/
#ifdef __block
# undef __block
# include_next "unistd.h"
# define __block __attribute__((__blocks__(byref)))
#else
# include_next "unistd.h"
#endif
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list