You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/11/18 22:20:56 UTC
DO NOT REPLY [Bug 14143] -
GNU gcc -E 2.95.3 dosen't define __GNUG__ on solaris
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14143>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14143
GNU gcc -E 2.95.3 dosen't define __GNUG__ on solaris
tng@ca.ibm.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From tng@ca.ibm.com 2002-11-18 21:20 -------
I use gcc 2.95.3 and it works for me.
> cat hello.cpp
//#include <stdio.h>
int main() {
#ifdef __GNUC__
printf("GNUC is defined\n");
#else
printf("GNUC is not defined\n");
#endif
#ifdef __GNUG__
printf("GNUG is defined\n");
#else
printf("GNUG is not defined\n");
#endif
return 0;
}
> gcc --version
2.95.3
> gcc -E hello.cpp
# 1 "hello.cpp"
int main() {
printf("GNUC is defined\n");
printf("GNUG is defined\n");
return 0;
}
If this is a problem with gcc 2.95.2 only, then this is a bug with gcc, not the
parser.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org