chiark
/
gitweb
/
~ijackson
/
trains.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
242144a
)
move _GNU_SOURCE to redactgraph.c because it causes a clash with strndup in publib...
author
ian
<ian>
Sun, 27 Mar 2005 22:24:00 +0000
(22:24 +0000)
committer
ian
<ian>
Sun, 27 Mar 2005 22:24:00 +0000
(22:24 +0000)
cprogs.make
patch
|
blob
|
history
layout/redactgraph.c
patch
|
blob
|
history
diff --git
a/cprogs.make
b/cprogs.make
index 132c373b7cd8990acf361ea7796d21bf6416addd..c9d0ebac109bd4e2ebf79c9da94db2b87919b3ec 100644
(file)
--- a/
cprogs.make
+++ b/
cprogs.make
@@
-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
diff --git
a/layout/redactgraph.c
b/layout/redactgraph.c
index 5c45efced5642b34f4e2a1a4eb64b58e12506428..7dcb7439ebee0de3a2264c2b6ab5800773efe94d 100644
(file)
--- a/
layout/redactgraph.c
+++ b/
layout/redactgraph.c
@@
-28,6
+28,8
@@
* are often useful.
*/
+#define _GNU_SOURCE
+
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>