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
This commit is contained in:
Vadim Zeitlin
2002-08-30 21:13:30 +00:00
parent 1fb35ade9b
commit 1af48460ac

View File

@@ -163,9 +163,11 @@ int WXDLLEXPORT wxVsnprintf_(wxChar *buf, size_t lenMax,
buf[lenCur++] = ch buf[lenCur++] = ch
#define APPEND_STR(s) \ #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]) { switch (format[++n]) {