mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-05 18:21:03 +00:00
strnlen() is only available from Visual Studio 2005+
This commit is contained in:
parent
90c2b37fd7
commit
b8365f2168
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user