X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a4aad4def6485646968be3561bfeac66a980608f..51072df23ffcf5bdd4651dbe0ad5143b1e360119:/src/msw/tbar95.cpp diff --git a/src/msw/tbar95.cpp b/src/msw/tbar95.cpp index 6ea1b236f4..40119dce3b 100644 --- a/src/msw/tbar95.cpp +++ b/src/msw/tbar95.cpp @@ -836,8 +836,9 @@ bool wxToolBar::MSWOnNotify(int WXUNUSED(idCtrl), // this case size_t lenAnsi = help.Len(); - #ifdef __MWERKS__ + #if defined( __MWERKS__ ) || defined( __CYGWIN__ ) // MetroWerks doesn't like calling mbstowcs with NULL argument + // neither Cygwin does size_t lenUnicode = 2*lenAnsi; #else size_t lenUnicode = mbstowcs(NULL, help, lenAnsi);