From f026bc4be9452442c5cdf505abc82ca4c623d833 Mon Sep 17 00:00:00 2001 From: dimitr Date: Tue, 2 Sep 2008 07:31:54 +0000 Subject: [PATCH] Adjustment for MSVC9. --- src/include/gen/autoconfig_msvc.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/include/gen/autoconfig_msvc.h b/src/include/gen/autoconfig_msvc.h index 1bf132c66b..30a79b8be6 100644 --- a/src/include/gen/autoconfig_msvc.h +++ b/src/include/gen/autoconfig_msvc.h @@ -137,7 +137,6 @@ #undef HAVE_SIGACTION #undef HAVE_SETITIMER #define HAVE_SNPRINTF -#define vsnprintf _vsnprintf #define HAVE_VSNPRINTF #define HAVE_SWAB #define HAVE__SWAB @@ -166,6 +165,10 @@ #undef HAVE_LOCALTIME_R #undef HAVE_GMTIME_R +#if defined _MSC_VER && _MSC_VER < 1500 +#define vsnprintf _vsnprintf +#endif + /* Types */ #undef HAVE_SOCKLEN_T