From 41aeb94eec853da6de640cc127c0e69529802375 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 4 Mar 2008 12:06:07 +0000 Subject: [PATCH] VC6 doesn't have wostream when using old iostream.h git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/defs.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/include/wx/defs.h b/include/wx/defs.h index c48dbaa91f..0c3848a2a3 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -452,9 +452,20 @@ typedef short int WXTYPE; #ifndef HAVE_WOSTREAM // Mingw <=3.4 doesn't have std::wostream - #if !defined(__MINGW32__) || wxCHECK_GCC_VERSION(4,0) + #if defined(__MINGW32__) && !wxCHECK_GCC_VERSION(4,0) + #define wxNO_WOSTREAM + #endif + + // VC++ doesn't have it in the old iostream library + #if defined(__VISUALC__) && wxUSE_IOSTREAMH + #define wxNO_WOSTREAM + #endif + + #ifndef wxNO_WOSTREAM #define HAVE_WOSTREAM #endif + + #undef wxNO_WOSTREAM #endif /* HAVE_WOSTREAM */ // ---------------------------------------------------------------------------- -- 2.45.2