Mon, 17 Nov 2003 14:28:28 +0100
trunk: changeset 59
Set _GNU_SOURCE when compiling with system asprintf. Default to system
asprintf.
output.c | file | annotate | diff | comparison | revisions | |
system.mk | file | annotate | diff | comparison | revisions |
--- a/output.c Thu Jul 17 19:11:30 2003 +0200 +++ b/output.c Mon Nov 17 14:28:28 2003 +0100 @@ -7,6 +7,10 @@ * the Clarified Artistic License or the GNU LGPL, version 2.1 or later. */ +#if defined(HAS_SYSTEM_ASPRINTF) +#define _GNU_SOURCE +#endif + #include <stdio.h> #include <stdlib.h> #include <errno.h>
--- a/system.mk Thu Jul 17 19:11:30 2003 +0200 +++ b/system.mk Mon Nov 17 14:28:28 2003 +0100 @@ -26,7 +26,7 @@ # asprintf and vasprintf in the c library. (gnu libc has.) # If HAS_SYSTEM_ASPRINTF is not defined, an implementation # in sprintf_2.2/ is used. -#HAS_SYSTEM_ASPRINTF=1 +HAS_SYSTEM_ASPRINTF=1 ## @@ -60,7 +60,7 @@ -Wparentheses -pedantic -Wuninitialized -CFLAGS=-g -O2 $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) +CFLAGS=-g -Os $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) LDFLAGS=-g $(LIBS) $(EXTRA_LIBS)