mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-04 14:50:19 +08:00
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>
|
||||
|
||||
* 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)
|
||||
|
Loading…
Reference in New Issue
Block a user