Commit 0961816a by Zack Weinberg Committed by Zack Weinberg

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
parent 5cb8bcbb
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",
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment