summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Germishuys <jacquesg@striata.com>2014-07-05 21:24:26 +0200
committerJacques Germishuys <jacquesg@striata.com>2014-07-06 09:22:24 +0200
commitb8365f21684ea062ed03d948993426a7f202e542 (patch)
tree42311bdeaca76ca04e55ef4496f33b98f0a29af5
parent90c2b37fd7e6598b32376dcbcaa9d7518f17d93f (diff)
downloadlibgit2-b8365f21684ea062ed03d948993426a7f202e542.tar.gz
strnlen() is only available from Visual Studio 2005+
-rw-r--r--src/strnlen.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/strnlen.h b/src/strnlen.h
index fdd7fe39c..eecfe3c02 100644
--- a/src/strnlen.h
+++ b/src/strnlen.h
@@ -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