summaryrefslogtreecommitdiff
path: root/ares_version.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-05-18 00:21:02 +0000
committerYang Tse <yangsita@gmail.com>2009-05-18 00:21:02 +0000
commit5b17412c1f522cc40b01e7108afb0deaaee781f6 (patch)
tree8c51d230aee179fd84a132056bc706ae37879ed2 /ares_version.h
parentb7c7bab713e3bfba6626050806c4f4584207be6d (diff)
downloadc-ares-5b17412c1f522cc40b01e7108afb0deaaee781f6.tar.gz
c-ares-5b17412c1f522cc40b01e7108afb0deaaee781f6.tar.bz2
c-ares-5b17412c1f522cc40b01e7108afb0deaaee781f6.zip
- 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_version.h')
-rw-r--r--ares_version.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/ares_version.h b/ares_version.h
index 2810845..66d4bcc 100644
--- a/ares_version.h
+++ b/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
-