summaryrefslogtreecommitdiff
path: root/ace/config-g++-common.h
diff options
context:
space:
mode:
authorcrodrigu <crodrigu@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-02-24 19:40:03 +0000
committercrodrigu <crodrigu@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-02-24 19:40:03 +0000
commit3081dfbb599ae6b9212bdf7b3bc5855a768c08ca (patch)
tree945e3d9eff17ad36fa92e585abd81ecb44073904 /ace/config-g++-common.h
parent8f51f8aa5ab7db42ea943121fa78522d8569a482 (diff)
downloadATCD-3081dfbb599ae6b9212bdf7b3bc5855a768c08ca.tar.gz
ChangeLogTag: Sat Feb 24 14:37:00 2001 Craig Rodrigues <crodrigu@bbn.com>
Diffstat (limited to 'ace/config-g++-common.h')
-rw-r--r--ace/config-g++-common.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/ace/config-g++-common.h b/ace/config-g++-common.h
index 6d00c2c9944..91876848014 100644
--- a/ace/config-g++-common.h
+++ b/ace/config-g++-common.h
@@ -27,7 +27,7 @@
// For some reason EGCS doesn't define this in its stdlib.
# define ACE_LACKS_AUTO_PTR
-# if __GNUC__ == 2 && __GNUC_MINOR__ >= 91
+# if __GNUC__ > 2 || ( __GNUC__ == 2 && __GNUC_MINOR__ >= 91 )
# define ACE_HAS_USING_KEYWORD
// This is only needed with egcs 1.1 (egcs-2.91.57). It can't be
// used with older versions.
@@ -36,6 +36,13 @@
# define ACE_LACKS_PLACEMENT_OPERATOR_DELETE
# endif /* __GNUC__ >= 2.91 */
+#if __GNUC__ > 2 || ( __GNUC__ == 2 && __GNUC_MINOR__ >= 97 )
+ // gcc 2.97 and higher use libstdc++-v3 and require
+ // the use of the std namespace for using iostreams
+# define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
+# undef ACE_USES_OLD_IOSTREAMS
+#endif /* __GNUC__ >= 2.97 */
+
# if __GNUC__ == 2 && __GNUC_MINOR__ != 9 && __GNUC_MINOR__ != 91
# // g++ 2.9 and egcs 2.91 apparently have a bug with this . . .
# define ACE_HAS_TEMPLATE_SPECIALIZATION