diff options
author | unknown <bar@mysql.com/bar.myoffice.izhnet.ru> | 2007-05-30 16:02:54 +0500 |
---|---|---|
committer | unknown <bar@mysql.com/bar.myoffice.izhnet.ru> | 2007-05-30 16:02:54 +0500 |
commit | 964a1191a083cca8acd430f65794bcc6efa7c4d8 (patch) | |
tree | a1f360ccd7ec9aae78e328553dc89042a94f9f9f /include | |
parent | cf1c80b8380ca8d64674251bb7cf49e1630e227c (diff) | |
download | mariadb-git-964a1191a083cca8acd430f65794bcc6efa7c4d8.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')
-rw-r--r-- | include/config-win.h | 3 |
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 |