aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/alpha/osf.h
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2003-12-12 01:19:25 +0000
committerRainer Orth <ro@gcc.gnu.org>2003-12-12 01:19:25 +0000
commitf502cbff6d1fd65a8f24efbae0ccc3ccab699eca (patch)
tree6aab55979ba574900ae7a4a600672386e08788ff /gcc/config/alpha/osf.h
parentd8683476fe137d0e878a1e46ca41392e1b50dad5 (diff)
downloadgcc-f502cbff6d1fd65a8f24efbae0ccc3ccab699eca.zip
gcc-f502cbff6d1fd65a8f24efbae0ccc3ccab699eca.tar.gz
gcc-f502cbff6d1fd65a8f24efbae0ccc3ccab699eca.tar.bz2
osf.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__ to ISO C94 for C++.
* config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__ to ISO C94 for C++. * fixinc/inclhack.def (alpha_wchar): New fix. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/wchar.h: New file. From-SVN: r74558
Diffstat (limited to 'gcc/config/alpha/osf.h')
-rw-r--r--gcc/config/alpha/osf.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config/alpha/osf.h b/gcc/config/alpha/osf.h
index 13e7626..fd72ba3 100644
--- a/gcc/config/alpha/osf.h
+++ b/gcc/config/alpha/osf.h
@@ -49,6 +49,13 @@ Boston, MA 02111-1307, USA. */
to be defined for <math.h>. */ \
if (LONG_DOUBLE_TYPE_SIZE == 128) \
builtin_define ("__X_FLOAT"); \
+ \
+ /* Tru64 UNIX V4/V5 provide several ISO C94 \
+ features protected by the corresponding \
+ __STDC_VERSION__ macro. libstdc++ v3 \
+ needs them as well. */ \
+ if (c_dialect_cxx ()) \
+ builtin_define ("__STDC_VERSION__=199409L"); \
} while (0)
/* Accept DEC C flags for multithreaded programs. We use _PTHREAD_USE_D4