]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/string.cpp
compilation fixes
[wxWidgets.git] / src / common / string.cpp
index 89cc7772f16434d12412a599a36683650ae2af67..da831ccafa2ba4683bdec766d6a0e90f26f61dd5 100644 (file)
@@ -985,14 +985,17 @@ int wxString::Printf(const wxChar *pszFormat, ...)
 int wxString::PrintfV(const wxChar* pszFormat, va_list argptr)
 {
   // static buffer to avoid dynamic memory allocation each time
-  static char s_szScratch[1024];
+  char s_szScratch[1024]; // using static buffer causes internal compiler err
+#if 0
 #if wxUSE_THREADS
   // protect the static buffer
   static wxCriticalSection critsect;
   wxCriticalSectionLocker lock(critsect);
 #endif
+#endif
 
-#if 1 // the new implementation
+#if wxUSE_EXPERIMENTAL_PRINTF
+// the new implementation
 
   Reinit();
   for (size_t n = 0; pszFormat[n]; n++)