summaryrefslogtreecommitdiff
path: root/include/config-win.h
diff options
context:
space:
mode:
authorunknown <bar@mysql.com/bar.myoffice.izhnet.ru>2007-05-30 16:02:54 +0500
committerunknown <bar@mysql.com/bar.myoffice.izhnet.ru>2007-05-30 16:02:54 +0500
commit2eba9378353c0a7e93a4ec807803c7224253aaab (patch)
treea1f360ccd7ec9aae78e328553dc89042a94f9f9f /include/config-win.h
parent42eab5a2b1824ad0896100259441a881deff4378 (diff)
downloadmariadb-git-2eba9378353c0a7e93a4ec807803c7224253aaab.tar.gz
Define HAVE_STRNLEN correctly.
include/config-win.h: strnlen() presents in the build in library only starting from Visual Studio 2005, identified by _MSC_VER 1400. Previous versions of Visual Studio didn't have this function, so they need the MySQL replacement function to be compiled.
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