diff options
author | Pierre Joye <pajoye@php.net> | 2008-12-13 11:47:06 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2008-12-13 11:47:06 +0000 |
commit | d4b63c8d7eb6777d3245f7cff7489423c7c6aa1e (patch) | |
tree | 741815161039300538526a011b3388b6d5f54b2c /win32 | |
parent | 33d110f8f8fb7e5d80d618b51e8f79f1b91b0c46 (diff) | |
download | php-git-d4b63c8d7eb6777d3245f7cff7489423c7c6aa1e.tar.gz |
- fix builds for VC8+, strnlen is available in vc8 and later (used in spprintf.c)
Diffstat (limited to 'win32')
-rw-r--r-- | win32/build/config.w32 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/build/config.w32 b/win32/build/config.w32 index 591f11cc49..6bfe34b306 100644 --- a/win32/build/config.w32 +++ b/win32/build/config.w32 @@ -315,6 +315,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 glob_wrapper.c"); |