[Bug c++/34859] g++ -D__STDC_LIMIT_MACROS -D__STDC_LIMIT_MACROS causes error

peeterj at ca dot ibm dot com gcc-bugzilla@gcc.gnu.org
Fri Jan 18 23:33:00 GMT 2008



------- Comment #1 from peeterj at ca dot ibm dot com  2008-01-18 23:06 -------
I see the two places in the code that look like they are related:

./libcpp/macro.c:1698:  if (! ustrncmp (NODE_NAME (node), DSC ("__STDC_"))
./libcpp/macro.c:1699:      && ustrcmp (NODE_NAME (node), (const uchar *)
"__STDC_FORMAT_MACROS"))
./libcpp/directives.c:2158:      if (! ustrncmp (NODE_NAME (node), DSC
("__STDC_")))


The first of these excludes __STDC_FORMAT_MACROS (inttypes.h) so perhaps should
also do this for __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS of stdint.h
too?  If that's the case, perhaps these same exclusions should be in
directives.h too (since I don't know the code I'm only guessing).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34859



More information about the Gcc-bugs mailing list