chiark / gitweb /
Add extern "C" for C++.
authorian <ian>
Wed, 14 Jul 1999 22:47:16 +0000 (22:47 +0000)
committerian <ian>
Wed, 14 Jul 1999 22:47:16 +0000 (22:47 +0000)
src/adns.h

index 996d2829f3aefd20eda06ece3f4e43c6d243c6d3..21bc52495d73960ac913dc01551657715215e25d 100644 (file)
@@ -24,6 +24,9 @@
 
 #ifndef ADNS_H_INCLUDED
 #define ADNS_H_INCLUDED
 
 #ifndef ADNS_H_INCLUDED
 #define ADNS_H_INCLUDED
+#ifdef __cplusplus
+extern "C" { /* I really dislike this - iwj. */
+#endif
 
 #include <stdio.h>
 
 
 #include <stdio.h>
 
@@ -564,4 +567,7 @@ const char *adns_errabbrev(adns_status st);
  * not returned by the same adns library.
  */
 
  * not returned by the same adns library.
  */
 
+#ifdef __cplusplus
+} /* end of extern "C" */
+#endif
 #endif
 #endif