[hackers] [scc] [cpp] adjust __STDC_VERSION__ depending on cstd.h || Quentin Rameau

From: <git_AT_suckless.org>
Date: Sat, 10 Dec 2016 16:06:20 +0100 (CET)

commit 13768a26eb296d9b29d83256f6c19112ead43c0d
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Sat Dec 10 14:59:54 2016 +0100
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Sat Dec 10 16:05:59 2016 +0100

    [cpp] adjust __STDC_VERSION__ depending on cstd.h

diff --git a/cc1/cpp.c b/cc1/cpp.c
index 5942cf1..0d100ce 100644
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
_AT_@ -80,7 +80,7 @@ icpp(void)
         strftime(stime, sizeof(stime), "\"%H:%M:%S\"", tm);
         defdefine("__DATE__", sdate, "built-in");
         defdefine("__TIME__", stime, "built-in");
- defdefine("__STDC_VERSION__", "199409L", "built-in");
+ defdefine("__STDC_VERSION__", STDC_VERSION, "built-in");
         defdefine("__LINE__", NULL, "built-in");
         defdefine("__FILE__", NULL, "built-in");
 
diff --git a/inc/c89/cstd.h b/inc/c89/cstd.h
index 0dee257..fe3d4cb 100644
--- a/inc/c89/cstd.h
+++ b/inc/c89/cstd.h
_AT_@ -1,5 +1,8 @@
 /* See LICENSE file for copyright and license details. */
 
+#define STDC_VERSION "199409L"
+
+/* Translation limits */
 /*
  * 15 nesting levels of compound statements, iteration control
  * structures, and selection control structures
diff --git a/inc/c99/cstd.h b/inc/c99/cstd.h
index ff6376a..e1ba10c 100644
--- a/inc/c99/cstd.h
+++ b/inc/c99/cstd.h
_AT_@ -1,5 +1,8 @@
 /* See LICENSE file for copyright and license details. */
 
+#define STDC_VERSION "199901L"
+
+/* Translation limits */
 /*
  * 127 nesting levels of blocks
  */
Received on Sat Dec 10 2016 - 16:06:20 CET

This archive was generated by hypermail 2.3.0 : Sat Dec 10 2016 - 16:12:23 CET