# HG changeset patch # User tuomov # Date 1069075708 -3600 # Node ID d32ef6ce17a4009beaebdba895bcbec8cb8ea968 # Parent 2795b5fb21df489f22d77acee2d2c67e49db1424 trunk: changeset 59 Set _GNU_SOURCE when compiling with system asprintf. Default to system asprintf. diff -r 2795b5fb21df -r d32ef6ce17a4 output.c --- 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 #include #include diff -r 2795b5fb21df -r d32ef6ce17a4 system.mk --- 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)