[Libevent-users] evdns.h c++ patch.

Phil Oleson oz at nixil.net
Thu Dec 21 04:23:46 EST 2006


I was checking my little program for c++ cleanliness and noticed that 
evdns.h didn't have these little patches.. Can we get this patch commited?

Index: evdns.h
===================================================================
--- evdns.h     (revision 304)
+++ evdns.h     (working copy)
@@ -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,7 @@

  #define DNS_NO_SEARCH 1

+#ifdef __cplusplus
+}
+#endif
  #endif  // !EVENTDNS_H


More information about the Libevent-users mailing list