put macros definition into parenthesis to avoid bugs

This commit is contained in:
Andrzej Rybczak
2009-03-26 12:27:57 +01:00
parent a6635322a8
commit c634059834

View File

@@ -41,8 +41,8 @@
# define TO_WSTRING(x) ToWString(x) # define TO_WSTRING(x) ToWString(x)
#else #else
# define my_char_t char # define my_char_t char
# define TO_STRING(x) x # define TO_STRING(x) (x)
# define TO_WSTRING(x) x # define TO_WSTRING(x) (x)
#endif #endif
std::string ToString(const std::wstring &); std::string ToString(const std::wstring &);