]> granicus.if.org Git - php/commitdiff
- MFB: fix builds for VC8+, strnlen is available in vc8 and later (used in spprintf.c)
authorPierre Joye <pajoye@php.net>
Sat, 13 Dec 2008 11:59:03 +0000 (11:59 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 13 Dec 2008 11:59:03 +0000 (11:59 +0000)
win32/build/config.w32

index b11ed9b16a64d3ea4740f87e7f092d21788f8f3a..6074b46cc42b5b06b3e108aee283f01ba272a6d2 100644 (file)
@@ -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");