X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1a5cd56aacbfcd5480929e4646e6e97f63add8c8..6cced968cf431d92b6f40d8f509841fb4b4def7e:/tests/strings/vsnprintf.cpp diff --git a/tests/strings/vsnprintf.cpp b/tests/strings/vsnprintf.cpp index 76579c9e5a..bef2356214 100644 --- a/tests/strings/vsnprintf.cpp +++ b/tests/strings/vsnprintf.cpp @@ -463,20 +463,22 @@ void VsnprintfTestCase::WrongFormatStrings() void VsnprintfTestCase::BigToSmallBuffer() { - wchar_t bufw[1024], bufw2[16], bufw3[4], bufw4; - char bufa[1024], bufa2[16], bufa3[4], bufa4; - + // VC6 can't compile this code +#if !defined(__VISUALC__) || (__VISUALC__ >= 1310) #if wxUSE_UNICODE + wchar_t bufw[1024], bufw2[16], bufw3[4], bufw4; Misc(bufw, 1024); Misc(bufw2, 16); Misc(bufw3, 4); Misc(&bufw4, 1); #endif // wxUSE_UNICODE + char bufa[1024], bufa2[16], bufa3[4], bufa4; Misc(bufa, 1024); Misc(bufa2, 16); Misc(bufa3, 4); Misc(&bufa4, 1); +#endif // !VC6 } void VsnprintfTestCase::DoMisc(