]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/strconv.cpp
Fixed bug for late events arriving after connections had been destroyed
[wxWidgets.git] / src / common / strconv.cpp
index 609f6f2b4dbe7340f78bd36528db48f5c61d57ff..d2b1144af8c8851d9bfab2f969d2eb2fa8c2b238 100644 (file)
@@ -454,7 +454,11 @@ size_t wxCSConv::WC2MB(char *buf, const wchar_t *psz, size_t n) const
     }
     return n;
   }
-  return wcslen(psz);
+#if defined(__BORLANDC__) && (__BORLANDC__ > 0x530)
+  return std::wcslen(psz);
+#else
+  return ::wcslen(psz);
+#endif
 }
 
 #endif