[ccan] Can _GNU_SOURCE be conditional in TAP?

Rusty Russell rusty at rustcorp.com.au
Tue Mar 31 18:19:37 EST 2009


On Tuesday 31 March 2009 17:01:26 Tim Post wrote:
> Hi Rusty,
> 
> I'm incorporating TAP into some trees that use -D_GNU_SOURCE, where
> warnings are treated as errors.
> 
> How ugly would it be to wrap #define _GNU_SOURCE in #ifndef in tap.c?
> 
> tests/tap.c:26:1: warning: "_GNU_SOURCE" redefined
> <command-line>: warning: this is the location of the previous definition

Sure, I've fixed this.

Of course, the *real* fix is to create an asprintf ccan package.

Volunteers welcome :)
Rusty.



More information about the ccan mailing list