summaryrefslogtreecommitdiff
path: root/evdns.h
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2007-01-27 04:06:52 +0000
committerNiels Provos <provos@gmail.com>2007-01-27 04:06:52 +0000
commit4922f342fcbad0f56c6de5f40a00b029d6757823 (patch)
tree5cdc2e2810e186359b36184587848002428115c8 /evdns.h
parentb04043ae51589899021d306af299dbad6668a621 (diff)
downloadlibevent-4922f342fcbad0f56c6de5f40a00b029d6757823.tar.gz
extern "C" guard for header file.
assert activeq in event.c; from Phil Oelson. svn:r313
Diffstat (limited to 'evdns.h')
-rw-r--r--evdns.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/evdns.h b/evdns.h
index ee272d20..d502564d 100644
--- a/evdns.h
+++ b/evdns.h
@@ -237,6 +237,10 @@
#ifndef EVENTDNS_H
#define EVENTDNS_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Error codes 0-5 are as described in RFC 1035. */
#define DNS_ERR_NONE 0
/* The name server was unable to interpret the query */
@@ -303,4 +307,8 @@ void evdns_set_log_fn(evdns_debug_log_fn_type fn);
#define DNS_NO_SEARCH 1
+#ifdef __cplusplus
+}
+#endif
+
#endif // !EVENTDNS_H