From 1af48460acd568e36f3d11ef2c9fc91328339b62 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 30 Aug 2002 21:13:30 +0000 Subject: [PATCH] compilation problem for compilers with old for() scoping rules git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wxchar.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index 19284b8813..2d2668191a 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -163,9 +163,11 @@ int WXDLLEXPORT wxVsnprintf_(wxChar *buf, size_t lenMax, buf[lenCur++] = ch #define APPEND_STR(s) \ - for ( const wxChar *p = s; *p; p++ ) \ { \ - APPEND_CH(*p); \ + for ( const wxChar *p = s; *p; p++ ) \ + { \ + APPEND_CH(*p); \ + } \ } switch (format[++n]) { -- 2.45.2