From: Markus Fischer Date: Mon, 2 Sep 2002 18:03:24 +0000 (+0000) Subject: - Enable strcoll() for win32 build X-Git-Tag: RELEASE_0_91~159 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f07b724620f902260bc6b1f063522f78a162cce5;p=php - Enable strcoll() for win32 build # Maybe I'm missing something. PHP has strcoll() since 4.0.5 but HAVE_STRCOLL # was always only available under Unix, no one activated it for Win32 since # then? # # Test to show it works: # # # Output: # array(3) { # [0]=> # string(1) "a" # [1]=> # string(1) "ä" # [2]=> # string(1) "z" # } # # Thanks to a comment found on the usort() page and to a dlcp post about a # similar issue. # # Worth for a MFH for 4.2.3, anyone ? --- diff --git a/main/config.w32.h.in b/main/config.w32.h.in index 3ec7a766bc..fa5b19a24f 100644 --- a/main/config.w32.h.in +++ b/main/config.w32.h.in @@ -165,3 +165,7 @@ #define SIZEOF_INT 4 #define HAVE_GLOB #define PHP_SHLIB_SUFFIX "dll" + +/* Win32 supports strcoll */ +#define HAVE_STRCOLL 1 +