]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected wchar handling for Mac OS X
authorGilles Depeyrot <gilles_depeyrot@mac.com>
Sun, 10 Jun 2001 18:17:59 +0000 (18:17 +0000)
committerGilles Depeyrot <gilles_depeyrot@mac.com>
Sun, 10 Jun 2001 18:17:59 +0000 (18:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/wxchar.h

index 9571f20b2eef19d7a9caa455869b9b1e15390148..cd4a4957accf8c42ff470694bf18ef9d6401386d 100644 (file)
@@ -288,11 +288,11 @@ typedef  _TUCHAR     wxUChar;
 #    ifdef HAVE_WCSTR_H
 #      include <wcstr.h>
 #    else
-#      ifndef __FreeBSD__
-#        include <wchar.h>
-#      else
+#      if defined(__FreeBSD__) || (defined(__APPLE__) && defined(__UNIX__))
 #        include <stdlib.h>
 #        define wxNEED_WCSLEN
+#      else
+#        include <wchar.h>
 #      endif
 #    endif
 #  endif