From: Pierre Joye Date: Sat, 13 Dec 2008 11:59:03 +0000 (+0000) Subject: - MFB: fix builds for VC8+, strnlen is available in vc8 and later (used in spprintf.c) X-Git-Tag: php-5.4.0alpha1~191^2~4816 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3292447864ed146de36a633800b7b99112c02bbe;p=php - MFB: fix builds for VC8+, strnlen is available in vc8 and later (used in spprintf.c) --- diff --git a/win32/build/config.w32 b/win32/build/config.w32 index b11ed9b16a..6074b46cc4 100644 --- a/win32/build/config.w32 +++ b/win32/build/config.w32 @@ -349,6 +349,9 @@ ADD_SOURCES("win32", "inet.c"); if (VCVERS <= 1300) { ADD_SOURCES("win32", "strtoi64.c"); } +if (VCVERS >= 1400) { + AC_DEFINE('HAVE_STRNLEN', 1); +} ADD_SOURCES("main/streams", "streams.c cast.c memory.c filter.c plain_wrapper.c \ userspace.c transports.c xp_socket.c mmap.c unicode_filter.c glob_wrapper.c");