]> git.saurik.com Git - wxWidgets.git/commitdiff
force wxUSE_IOSTREAMH to 0 with VC 7.1
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 27 May 2003 22:04:50 +0000 (22:04 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 27 May 2003 22:04:50 +0000 (22:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/setup0.h
include/wx/platform.h

index 2e6ade43097c4951ec28c36ca8a3647a326ae916..524f8adb0880d761313e877e1dce74bd50c8dd0e 100644 (file)
 #define REMOVE_UNUSED_ARG   1
 
 // VC++ 4.2 and above allows <iostream> and <iostream.h> but you can't mix
-// them. Set to 1 for <iostream.h>, 0 for <iostream>
+// them. Set to 1 for <iostream.h>, 0 for <iostream>. Note that VC++ 7.1
+// and later doesn't support wxUSE_IOSTREAMH == 1 and so <iostream> will be
+// used anyhow.
 //
 // Default is 1.
 //
index 4cc8041dda472b122381d43fabbf4f1e76447006..0471d1860502b57b30906519e8cdcda9c154269f 100644 (file)
 /* 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 <iostream.h>) declare classes in the global namespace
    while the new, standard ones (like <iostream>) do it in std:: namespace
    either case
  */
 #if !wxUSE_IOSTREAMH
-  #define wxSTD std::
+    #define wxSTD std::
 #else
- #define wxSTD
   #define wxSTD
 #endif
 
 /*