This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Error on setenv(..., NULL, ...)


On Sun, 15 Mar 2015, Paul Eggert wrote:

> I couldn't even use plain DIAG_IGNORE_NEEDS_COMMENT (i.e., without
> DIAG_PUSH_NEEDS_COMMENT), because I needed to put the #pragma before including
> <errno.h> (the first standard include) -- otherwise I got the warning -- and
> DIAG_IGNORE_NEEDS_COMMENT isn't defined until after <errno.h> is included.

Any file using those macros should explicitly include <libc-internal.h> to 
get their definitions.  Are you saying that if you include 
<libc-internal.h>, then use the macros, then include other headers, that 
it doesn't work?

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]