From 084447e414a6ed992c252f1e143676d3eac37742 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 18 May 2009 00:21:02 +0000 Subject: - Provide in external interface preprocessor symbol definitions for CARES_HAVE_ARES_LIBRARY_INIT and CARES_HAVE_ARES_LIBRARY_CLEANUP to ease the use of new capabilities. - Move ares_version() prototype to ares.h --- ares/ares_version.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'ares/ares_version.h') diff --git a/ares/ares_version.h b/ares/ares_version.h index 281084534..66d4bcc78 100644 --- a/ares/ares_version.h +++ b/ares/ares_version.h @@ -11,15 +11,12 @@ (ARES_VERSION_PATCH)) #define ARES_VERSION_STR "1.6.1-CVS" -#ifdef __cplusplus -extern "C" { -#endif - -const char *ares_version(int *version); - -#ifdef __cplusplus -} +#if (ARES_VERSION >= 0x010601) +# define CARES_HAVE_ARES_LIBRARY_INIT 1 +# define CARES_HAVE_ARES_LIBRARY_CLEANUP 1 +#else +# undef CARES_HAVE_ARES_LIBRARY_INIT +# undef CARES_HAVE_ARES_LIBRARY_CLEANUP #endif #endif - -- cgit v1.2.3