namespace safety with attributes

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Aug 1 09:56:00 GMT 2014


On Jul 31 10:07, Eric Blake wrote:
> As pointed out here:
> https://cygwin.com/ml/cygwin/2014-07/msg00371.html
> 
> any use of __attribute__ in a header that can be included by a user
> should be namespace-safe, by decorating the attribute arguments with __
> (while gcc does a lousy job at documenting it, ALL attributes have a __
> counterpart, precisely so that public headers can use attributes without
> risk of collision with macros belonging to user namespace).
> 
> 2014-07-31  Eric Blake  <...>
> 
> 	* include/pthread.h: Decorate attribute names with __, for
> 	namespace safety.
> 	* include/cygwin/core_dump.h: Likewise.
> 	* include/cygwin/cygwin_dll.h: Likewise.
> 	* include/sys/cygwin.h: Likewise.
> 	* include/sys/strace.h: Likewise.

Thanks, please apply.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20140801/b4660c17/attachment.sig>


More information about the Cygwin-patches mailing list