Index: ext/libicpf/src/gen_types.h =================================================================== diff -u -N -r715fea7874b61921a42db6e8925029a69f678b89 -r6dae57f5e7aeeb965bc018024d8360069f6e15c1 --- ext/libicpf/src/gen_types.h (.../gen_types.h) (revision 715fea7874b61921a42db6e8925029a69f678b89) +++ ext/libicpf/src/gen_types.h (.../gen_types.h) (revision 6dae57f5e7aeeb965bc018024d8360069f6e15c1) @@ -37,6 +37,8 @@ #include #endif +#include + // standard types and formats used throughout the library // exactly 1 byte /// Byte type (8bit unsigned int) @@ -52,15 +54,20 @@ #if (defined(_WIN32) || defined(_WIN64)) && defined(_UNICODE) /// System/configuration dependent character (either wide char or normal one) typedef wchar_t tchar_t; + typedef std::wstring tstring_t; /// Macro to be appended to each text in code to be either composed of wide characters or normal ones - #define _t(text) L(text) + #define __t(text) L##text + #define _t(text) __t(text) /// String formatting string - depending on configuration could display wide char string or normal one. #define TSTRFMT WSTRFMT + #define TCHRFMT CHRFMT #else // description as above typedef char_t tchar_t; + typedef std::string tstring_t; #define _t(text) text #define TSTRFMT STRFMT + #define TCHRFMT CHRFMT #endif // 16-bit integers