trunk: changeset 19

Sat, 01 Jul 2000 14:18:56 +0200

author
tuomov
date
Sat, 01 Jul 2000 14:18:56 +0200
changeset 16
f597c8f0bcc9
parent 15
9f5760af87d9
child 17
a034888a2227

trunk: changeset 19
Use POSIX_SOURCE

Makefile file | annotate | diff | comparison | revisions
system.mk file | annotate | diff | comparison | revisions
--- a/Makefile	Sat Jul 01 13:31:40 2000 +0200
+++ b/Makefile	Sat Jul 01 14:18:56 2000 +0200
@@ -8,7 +8,7 @@
 ######################################
 
 INCLUDES += -I./include
-CFLAGS += $(ANSI_SOURCE)
+CFLAGS += $(POSIX_SOURCE)
 
 OBJS= misc.o output.o util.o optparser.o parser.o tokenizer.o
 
--- a/system.mk	Sat Jul 01 13:31:40 2000 +0200
+++ b/system.mk	Sat Jul 01 14:18:56 2000 +0200
@@ -33,10 +33,21 @@
 
 CC=gcc
 
-ANSI_SOURCE=-ansi
-# gnu libc
-XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
-# most other systems
+# The ANSI_SOURCE, XOPEN_SOURCE and WARN options should not be necessary,
+# they're mainly for development use. So, if they cause trouble (not
+# the ones that should be used on your system or the system is broken),
+# just comment them out.
+
+# libtu/ uses POSIX_SOURCE
+
+POSIX_SOURCE=-ansi -D_POSIX_SOURCE
+
+# and . (pwm) XOPEN_SOURCE
+
+# This should be used for gnu libc (linux), but SA_RESTART seems to be
+# broken so don't use anything.
+#XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
+# Some other systems.
 #XOPEN_SOURCE=-ansi -D__EXTENSIONS__
 
 # Same as '-Wall -pedantic-errors' without '-Wunused' as callbacks often

mercurial