workaround for crashes in release builds

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-01-30 20:58:08 +00:00
parent e47e063af2
commit b69470e4ee

View File

@@ -69,7 +69,9 @@
// use in DLL build under pre-Vista Windows so we disable this code for now, if // use in DLL build under pre-Vista Windows so we disable this code for now, if
// anybody really needs to use UTF-8 build under Windows with this optimization // anybody really needs to use UTF-8 build under Windows with this optimization
// it would have to be re-tested and probably corrected // it would have to be re-tested and probably corrected
#if wxUSE_UNICODE_UTF8 && !defined(__WXMSW__) // CS: under OSX release builds the string destructor/cache cleanup sometimes
// crashes, disable until we find the true reason or a better workaround
#if wxUSE_UNICODE_UTF8 && !defined(__WXMSW__) && !defined(__WXOSX__)
#define wxUSE_STRING_POS_CACHE 1 #define wxUSE_STRING_POS_CACHE 1
#else #else
#define wxUSE_STRING_POS_CACHE 0 #define wxUSE_STRING_POS_CACHE 0