scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit c6d99ef3b76340791a0e68a8521277599cd1b690
parent 36efc76de7867528cd04d01e3265ff8a61d1f4df
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 20 Jul 2015 07:55:45 +0200

No define _DEFAULT_SOURCE

_DEFAULT_SOURCE is a Feature Test Macro which include
several functions in the name space when it is defined.
This polution of the name space can generate problems
in a c99 program like scc. For example in lex.c there is
a function called getline with a different prototype
than POSIX2008 getline function.

Diffstat:
Mconfig.mk | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.mk b/config.mk @@ -12,6 +12,6 @@ LD = $(CC) AR = ar # for Plan9 add -D_SUSV2_SOURCE -DNBOOL -CPPFLAGS = -D_DEFAULT_SOURCE +CPPFLAGS = CFLAGS = -std=c99 LDFLAGS = -s