chiark / gitweb /
move _GNU_SOURCE to redactgraph.c because it causes a clash with strndup in publib...
authorian <ian>
Sun, 27 Mar 2005 22:24:00 +0000 (22:24 +0000)
committerian <ian>
Sun, 27 Mar 2005 22:24:00 +0000 (22:24 +0000)
cprogs.make
layout/redactgraph.c

index 132c373b7cd8990acf361ea7796d21bf6416addd..c9d0ebac109bd4e2ebf79c9da94db2b87919b3ec 100644 (file)
@@ -5,7 +5,7 @@ CFLAGS= $(CPPFLAGS) \
        -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes \
        $(WERROR) \
        -g $(OPTIMISE)
-CPPFLAGS=      -D_GNU_SOURCE
+CPPFLAGS=
 LINK=          $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ $(LIBS)
 
 %.o:   %.c
index 5c45efced5642b34f4e2a1a4eb64b58e12506428..7dcb7439ebee0de3a2264c2b6ab5800773efe94d 100644 (file)
@@ -28,6 +28,8 @@
  * are often useful.
  */
 
+#define _GNU_SOURCE
+
 #include <stdarg.h>
 #include <string.h>
 #include <stdlib.h>