From 0392c573517885ee3d8ccc9746483ca5a3849a65 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 16 May 2016 16:40:12 +0200 Subject: [PATCH] winstd::tstring defined --- include/WinStd/Common.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/WinStd/Common.h b/include/WinStd/Common.h index 6fb89d9f..5c5d5d74 100644 --- a/include/WinStd/Common.h +++ b/include/WinStd/Common.h @@ -122,6 +122,13 @@ inline int sprintf(_Out_ std::basic_string<_Elem, _Traits, _Ax> &str, _In_z_ _Pr namespace winstd { +#ifdef _UNICODE + typedef std::wstring tstring; +#else + typedef std::string tstring; +#endif + + /// /// \defgroup WinStdSysHandles System Handles /// Simplifies work with object handles of various type