]> git.proxmox.com Git - libgit2.git/commitdiff
strnlen() is only available from Visual Studio 2005+
authorJacques Germishuys <jacquesg@striata.com>
Sat, 5 Jul 2014 19:24:26 +0000 (21:24 +0200)
committerJacques Germishuys <jacquesg@striata.com>
Sun, 6 Jul 2014 07:22:24 +0000 (09:22 +0200)
src/strnlen.h

index fdd7fe39cc14c4bd9862afeccf0b4660bc484a5d..eecfe3c02e9656af7e64fb52f1852c56686345df 100644 (file)
@@ -7,7 +7,8 @@
 #ifndef INCLUDE_strlen_h__
 #define INCLUDE_strlen_h__
 
-#if defined(__MINGW32__) || defined(__sun) || defined(__APPLE__) || defined(__MidnightBSD__)
+#if defined(__MINGW32__) || defined(__sun) || defined(__APPLE__) || defined(__MidnightBSD__) ||\
+       (defined(_MSC_VER) && _MSC_VER < 1500)
 #   define NO_STRNLEN
 #endif