strnlen() is only available from Visual Studio 2005+

This commit is contained in:
Jacques Germishuys 2014-07-05 21:24:26 +02:00
parent 90c2b37fd7
commit b8365f2168

View 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