]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/setup_inc.h
Move the #if disabling wxUSE_STD_STRING for watcom/dmc/vc5 into setup.h so
[wxWidgets.git] / include / wx / setup_inc.h
index ae2ea280f36073005cc1fd53d834610ce1d4bfad..623023fe07643a2e5d2a9940dec11a26b5a1c064 100644 (file)
 #define wxUSE_STD_IOSTREAM  0
 
 // Enable conversion to standard C++ string if 1.
-#define wxUSE_STD_STRING  1
+//
+// Default is 1 for most compilers.
+//
+// Currently the Digital Mars and Watcom compilers come without standard C++
+// library headers by default, wxUSE_STD_STRING can be set to 1 if you do have
+// them (e.g. from STLPort).
+//
+// VC++ 5.0 does include standard C++ library header, however they produce
+// many warnings that can't be turned off when compiled at warning level 4.
+#if defined(__DMC__) || defined(__WATCOMC__) \
+        || (defined(_MSC_VER) && _MSC_VER < 1200)
+    #define wxUSE_STD_STRING  0
+#else
+    #define wxUSE_STD_STRING  1
+#endif
 
 // Support for positional parameters (e.g. %1$d, %2$s ...) in wxVsnprintf.
 // Note that if the system's implementation does not support positional