[hackers] [scc] [cpp] fix definition of standard macros || Quentin Rameau

From: <git_AT_suckless.org>
Date: Thu, 21 Jul 2016 16:39:18 +0200 (CEST)

commit 084f7cad65f54bf44837f6a00524ddc58241348e
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Thu Jul 21 14:19:41 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Thu Jul 21 14:20:40 2016 +0200

    [cpp] fix definition of standard macros
    
    Define __STDC__, __STDC_HOSTED__, __SCC__ to 1 instead of empty

diff --git a/cc1/cpp.c b/cc1/cpp.c
index d43628d..5e74037 100644
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
_AT_@ -88,7 +88,7 @@ icpp(void)
         symfile = lookup(NS_CPP, "__FILE__");
 
         for (bp = list; *bp; ++bp)
- defdefine(*bp, NULL);
+ defdefine(*bp, "1");
 
         ncmdlines = 0;
 }
Received on Thu Jul 21 2016 - 16:39:18 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 21 2016 - 16:48:14 CEST