cpplib.c (do_define): Allow redefining __STDC__ with -D.

1999-02-09 10:30 -0500  Zack Weinberg  <zack@rabi.columbia.edu>
	* cpplib.c (do_define): Allow redefining __STDC__ with -D.

From-SVN: r25109
This commit is contained in:
Zack Weinberg 1999-02-09 07:31:59 +00:00 committed by Zack Weinberg
parent 5cb8bcbbbf
commit 0961816af0
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
1999-02-09 10:30 -0500 Zack Weinberg <zack@rabi.columbia.edu>
* cpplib.c (do_define): Allow redefining __STDC__ with -D.
1999-02-09 Jim Blandy <jimb@zwingli.cygnus.com>
* configure.in: For PowerPC configurations, accept "401", "ec603e",

View File

@ -1410,7 +1410,7 @@ do_define (pfile, keyword)
else if (hp->type == T_MACRO)
ok = ! compare_defs (pfile, mdef.defn, hp->value.defn);
/* Redefining a constant is ok with -D. */
else if (hp->type == T_CONST)
else if (hp->type == T_CONST || hp->type == T_STDC)
ok = ! CPP_OPTIONS (pfile)->done_initializing;
/* Print the warning if it's not ok. */
if (!ok)