diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-24 23:36:25 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-24 23:36:25 +0000 |
commit | cf114fce4bcf31f08808a11e9b1fb2f9998b5f92 (patch) | |
tree | df1262ab03fe2c8116e05b79a75c1c58f79ecebc /include | |
parent | e973eec4e9aef193384056051dd711ca0ef4c1d1 (diff) | |
download | gcc-cf114fce4bcf31f08808a11e9b1fb2f9998b5f92.tar.gz |
* ansidecl.h (__STDC__): Add (__alpha && __cplusplus) to the
list of platform compilers that may look, smell and act
like __STDC__ but that may not define it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58513 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 6 | ||||
-rw-r--r-- | include/ansidecl.h | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 8fd4b486926..424b99790dc 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,9 @@ +2002-10-24 Nathan Tallent <eraxxon@alumni.rice.edu> + + * ansidecl.h (__STDC__): Add (__alpha && __cplusplus) to the + list of platform compilers that may look, smell and act + like __STDC__ but that may not define it. + 2002-10-11 David O'Brien <obrien@FreeBSD.org> * getopt.h: getopt is in unistd.h (based on SUSv2). diff --git a/include/ansidecl.h b/include/ansidecl.h index 9a7c5777ff2..d169b4f50ed 100644 --- a/include/ansidecl.h +++ b/include/ansidecl.h @@ -136,10 +136,13 @@ So instead we use the macro below and test it against specific values. */ #define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__) #endif /* GCC_VERSION */ -#if defined (__STDC__) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(_WIN32) +#if defined (__STDC__) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(_WIN32) || (defined(__alpha) && defined(__cplusplus)) /* All known AIX compilers implement these things (but don't always define __STDC__). The RISC/OS MIPS compiler defines these things in SVR4 mode, but does not define __STDC__. */ +/* eraxxon@alumni.rice.edu: The Compaq C++ compiler, unlike many other + C++ compilers, does not define __STDC__, though it acts as if this + was so. (Verified versions: 5.7, 6.2, 6.3, 6.5) */ #define ANSI_PROTOTYPES 1 #define PTR void * |