From d70471fe7204a4a6541c543db22323f98b1369cd Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 19 Dec 2004 23:08:43 +0000 Subject: [PATCH] corrected wxMAKE_VERSION_STRING and wxMAKE_VERSION_DOT_STRING definitions git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/version.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/wx/version.h b/include/wx/version.h index fde4663180..be6eadca3c 100644 --- a/include/wx/version.h +++ b/include/wx/version.h @@ -29,8 +29,11 @@ /* ---------------------------------------------------------------------------- */ /* helpers for wxVERSION_NUM_XXX */ -#define wxMAKE_VERSION_STRING(x, y, z) #x #y #z -#define wxMAKE_VERSION_DOT_STRING(x, y, z) #x "." #y "." #z +#define wxSTRINGIZE(x) #x +#define wxMAKE_VERSION_STRING(x, y, z) \ + wxSTRINGIZE(x) wxSTRINGIZE(y) wxSTRINGIZE(z) +#define wxMAKE_VERSION_DOT_STRING(x, y, z) \ + wxSTRINGIZE(x) "." wxSTRINGIZE(y) "." wxSTRINGIZE(z) /* these are used by src/msw/version.rc and should always be ASCII, not Unicode */ #define wxVERSION_NUM_STRING \