This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11157] __block is a reserved word with clang -fblocks
- From: "mark at heily dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Tue, 27 Dec 2011 02:41:15 +0000
- Subject: [Bug libc/11157] __block is a reserved word with clang -fblocks
- Auto-submitted: auto-generated
- References: <bug-11157-131@http.sourceware.org/bugzilla/>
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.