From be5ade5c7a722e04554b6d9751947350538e68fe Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 9 Apr 2007 17:46:01 +0000 Subject: VC8+ (VS2005+) has C99 variadic macro support --- lib/config-win32.h | 5 +++++ src/config-win32.h | 15 +++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/lib/config-win32.h b/lib/config-win32.h index 021576068..7520d2973 100644 --- a/lib/config-win32.h +++ b/lib/config-win32.h @@ -341,6 +341,11 @@ /* Windows should not have HAVE_GMTIME_R defined */ /* #undef HAVE_GMTIME_R */ +/* Define if the compiler supports C99 variadic macro style. */ +#if defined(_MSC_VER) && (_MSC_VER >= 1400) +#define HAVE_VARIADIC_MACROS_C99 1 +#endif + /* ---------------------------------------------------------------- */ /* LDAP LIBRARY FILES */ /* ---------------------------------------------------------------- */ diff --git a/src/config-win32.h b/src/config-win32.h index 6e0380a3b..734d575a8 100644 --- a/src/config-win32.h +++ b/src/config-win32.h @@ -165,6 +165,21 @@ /* Define this if you have struct timeval */ #define HAVE_STRUCT_TIMEVAL 1 +/* ---------------------------------------------------------------- */ +/* COMPILER SPECIFIC */ +/* ---------------------------------------------------------------- */ + +/* Undef keyword 'const' if it does not work. */ +/* #undef const */ + +/* Windows should not have HAVE_GMTIME_R defined */ +/* #undef HAVE_GMTIME_R */ + +/* Define if the compiler supports C99 variadic macro style. */ +#if defined(_MSC_VER) && (_MSC_VER >= 1400) +#define HAVE_VARIADIC_MACROS_C99 1 +#endif + /* ---------------------------------------------------------------- */ /* ADDITIONAL DEFINITIONS */ /* ---------------------------------------------------------------- */ -- cgit v1.2.3