summaryrefslogtreecommitdiff
path: root/src/common/strlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/strlib.h')
-rw-r--r--src/common/strlib.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/strlib.h b/src/common/strlib.h
index d3b9a1dec..f242b5cc4 100644
--- a/src/common/strlib.h
+++ b/src/common/strlib.h
@@ -21,4 +21,9 @@ char *_strtok_r(char *s1, const char *s2, char **lasts);
int remove_control_chars(unsigned char *);
char *trim(char *str, const char *delim);
const char *stristr(const char *haystack, const char *needle);
+
+#if !defined(WIN32) || (defined(_MSC_VER) && _MSC_VER < 1400)
+size_t strnlen (const char* string, size_t maxlen);
+#endif
+
#endif