]> git.saurik.com Git - wxWidgets.git/commitdiff
wchar/wcslen corrections for Darwin (same as FreeBSD)
authorGilles Depeyrot <gilles_depeyrot@mac.com>
Sun, 4 Nov 2001 17:20:38 +0000 (17:20 +0000)
committerGilles Depeyrot <gilles_depeyrot@mac.com>
Sun, 4 Nov 2001 17:20:38 +0000 (17:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/wxchar.h

index 5ac03f6416c5983a2d0548dd2a450b29f7dc79ac..ad2cd98fc1e32fc9db1d1c2e62157243e9b10078 100644 (file)
@@ -273,7 +273,7 @@ typedef  _TUCHAR     wxUChar;
 #    if defined(__VISUALC__) && (__VISUALC__ < 900)
 #      define wxUSE_WCHAR_T 0 // wchar_t is not available for MSVC++ 1.5
 #    elif defined(__UNIX__)
-#      if defined(HAVE_WCSTR_H) || defined(HAVE_WCHAR_H) || defined(__FreeBSD__) || (defined(__DARWIN__))
+#      if defined(HAVE_WCSTR_H) || defined(HAVE_WCHAR_H) || defined(__FreeBSD__) || defined(__DARWIN__)
 #        define wxUSE_WCHAR_T 1
 #      else
 #        define wxUSE_WCHAR_T 0
@@ -296,12 +296,12 @@ typedef  _TUCHAR     wxUChar;
 #    ifdef HAVE_WCSTR_H
 #      include <wcstr.h>
 #    else
-       // VZ: do we really have to include this?
-#      include <stdlib.h>
-
        // include wchar.h to get wcslen() declaration used by wx/buffer.h
 #      if defined(HAVE_WCHAR_H)
 #        include <wchar.h>
+#      elif defined(__FreeBSD__) || defined(__DARWIN__)
+#        include <stdlib.h>
+#        define wxNEED_WCSLEN
 #      endif
 #    endif
 #  endif