summaryrefslogtreecommitdiff
path: root/include/config-win.h
diff options
context:
space:
mode:
authorbar@mysql.com/bar.myoffice.izhnet.ru <>2007-05-30 16:02:54 +0500
committerbar@mysql.com/bar.myoffice.izhnet.ru <>2007-05-30 16:02:54 +0500
commitf6e5cfd85c6ab611e7e53a1d27d8ed076579fb6f (patch)
treea1f360ccd7ec9aae78e328553dc89042a94f9f9f /include/config-win.h
parentad8e43155b9b9daf92156a13ddbafce31901b932 (diff)
downloadmariadb-git-f6e5cfd85c6ab611e7e53a1d27d8ed076579fb6f.tar.gz
Define HAVE_STRNLEN correctly.
Diffstat (limited to 'include/config-win.h')
-rw-r--r--include/config-win.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/config-win.h b/include/config-win.h
index 8d6f8885626..6622be81038 100644
--- a/include/config-win.h
+++ b/include/config-win.h
@@ -350,7 +350,10 @@ inline double ulonglong2double(ulonglong value)
#define SPRINTF_RETURNS_INT
#define HAVE_SETFILEPOINTER
#define HAVE_VIO_READ_BUFF
+#if defined(_MSC_VER) && _MSC_VER >= 1400
+/* strnlen() appeared in Studio 2005 */
#define HAVE_STRNLEN
+#endif
#define HAVE_WINSOCK2
#define strcasecmp stricmp