[hackers] [scc] No define _DEFAULT_SOURCE || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Mon, 20 Jul 2015 08:23:25 +0200 (CEST)

commit c6d99ef3b76340791a0e68a8521277599cd1b690
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Jul 20 07:55:45 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Jul 20 07:55:45 2015 +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.

diff --git a/config.mk b/config.mk
index 7e339c4..1784916 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -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
Received on Mon Jul 20 2015 - 08:23:25 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 20 2015 - 08:24:10 CEST