From c634059834d5b8b5dd30bac00c3f36d8433fd2da Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Thu, 26 Mar 2009 12:27:57 +0100 Subject: [PATCH] put macros definition into parenthesis to avoid bugs --- src/window.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window.h b/src/window.h index d3a65414..d6e33701 100644 --- a/src/window.h +++ b/src/window.h @@ -41,8 +41,8 @@ # define TO_WSTRING(x) ToWString(x) #else # define my_char_t char -# define TO_STRING(x) x -# define TO_WSTRING(x) x +# define TO_STRING(x) (x) +# define TO_WSTRING(x) (x) #endif std::string ToString(const std::wstring &);