]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tbar95.cpp
better <HR> tag handling in wxHTML
[wxWidgets.git] / src / msw / tbar95.cpp
index 6ea1b236f477feddcdee879b642010717b75e2f5..40119dce3bd8017efd824ea887c1b0616fcb90ac 100644 (file)
@@ -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);