diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/m_system_cpp.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h index 2cb5a5af5e..600eefe01f 100644 --- a/include/m_system_cpp.h +++ b/include/m_system_cpp.h @@ -27,14 +27,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "m_system.h"
-#if defined(_UNICODE)
- #define tstring wstring
-#else
- #define tstring string
-#endif
-
#if defined(__cplusplus)
+#if defined(_STRING_)
+namespace std
+{
+ typedef basic_string<TCHAR, char_traits<TCHAR>, allocator<TCHAR> > tstring;
+}
+#endif
+
///////////////////////////////////////////////////////////////////////////////
// mir_ptr - automatic pointer for buffers, allocated using mir_alloc/mir_calloc
|