shithub: scc

Download patch

ref: c6d99ef3b76340791a0e68a8521277599cd1b690
parent: 36efc76de7867528cd04d01e3265ff8a61d1f4df
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Jul 20 03:55:45 EDT 2015

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.

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