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:
parent
5cb8bcbbbf
commit
0961816af0
|
@ -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>
|
1999-02-09 Jim Blandy <jimb@zwingli.cygnus.com>
|
||||||
|
|
||||||
* configure.in: For PowerPC configurations, accept "401", "ec603e",
|
* configure.in: For PowerPC configurations, accept "401", "ec603e",
|
||||||
|
|
|
@ -1410,7 +1410,7 @@ do_define (pfile, keyword)
|
||||||
else if (hp->type == T_MACRO)
|
else if (hp->type == T_MACRO)
|
||||||
ok = ! compare_defs (pfile, mdef.defn, hp->value.defn);
|
ok = ! compare_defs (pfile, mdef.defn, hp->value.defn);
|
||||||
/* Redefining a constant is ok with -D. */
|
/* 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;
|
ok = ! CPP_OPTIONS (pfile)->done_initializing;
|
||||||
/* Print the warning if it's not ok. */
|
/* Print the warning if it's not ok. */
|
||||||
if (!ok)
|
if (!ok)
|
||||||
|
|
Loading…
Reference in New Issue