From eb382f3e5ebe0fcf03dac83e6efb55e710383cc7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 27 May 2003 22:04:50 +0000 Subject: [PATCH] force wxUSE_IOSTREAMH to 0 with VC 7.1 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/setup0.h | 4 +++- include/wx/platform.h | 13 +++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/include/wx/msw/setup0.h b/include/wx/msw/setup0.h index 2e6ade4309..524f8adb08 100644 --- a/include/wx/msw/setup0.h +++ b/include/wx/msw/setup0.h @@ -906,7 +906,9 @@ #define REMOVE_UNUSED_ARG 1 // VC++ 4.2 and above allows and but you can't mix -// them. Set to 1 for , 0 for +// them. Set to 1 for , 0 for . Note that VC++ 7.1 +// and later doesn't support wxUSE_IOSTREAMH == 1 and so will be +// used anyhow. // // Default is 1. // diff --git a/include/wx/platform.h b/include/wx/platform.h index 4cc8041dda..0471d18605 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -85,6 +85,15 @@ /* check the consistency of the settings in setup.h */ #include "wx/chkconf.h" +/* + some compilers don't support iostream.h any longer, so override the users + setting here in such case. + */ +#if defined(_MSC_VER) && (_MSC_VER >= 1310) + #undef wxUSE_IOSTREAMH + #define wxUSE_IOSTREAMH 0 +#endif /* compilers not supporting iostream.h */ + /* old C++ headers (like ) declare classes in the global namespace while the new, standard ones (like ) do it in std:: namespace @@ -93,9 +102,9 @@ either case */ #if !wxUSE_IOSTREAMH - #define wxSTD std:: + #define wxSTD std:: #else - #define wxSTD + #define wxSTD #endif /* -- 2.47.2