diff options
author | Yang Tse <yangsita@gmail.com> | 2009-05-18 00:21:02 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-05-18 00:21:02 +0000 |
commit | 084447e414a6ed992c252f1e143676d3eac37742 (patch) | |
tree | 404510aa15da23773a51cc811f6035ea05334d72 /ares/ares_version.h | |
parent | 4c9c9f0b89a09a9358fc3091f7561f52b8f83d90 (diff) |
- 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
Diffstat (limited to 'ares/ares_version.h')
-rw-r--r-- | ares/ares_version.h | 15 |
1 files changed, 6 insertions, 9 deletions
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 - |