chiark / gitweb /
+ * Move `extern "C" {' to after #include <...>'s.
[adns.git] / src / adns.h
index 42873134f3c9a45ebb4a16833fbb68592cbbb887..9478112b1d3f96614ca25d96f06a3cc1b9530fa8 100644 (file)
@@ -56,9 +56,6 @@
 
 #ifndef ADNS_H_INCLUDED
 #define ADNS_H_INCLUDED
-#ifdef __cplusplus
-extern "C" { /* I really dislike this - iwj. */
-#endif
 
 #include <stdio.h>
 
@@ -68,6 +65,10 @@ extern "C" { /* I really dislike this - iwj. */
 #include <sys/time.h>
 #include <unistd.h>
 
+#ifdef __cplusplus
+extern "C" { /* I really dislike this - iwj. */
+#endif
+
 /* All struct in_addr anywhere in adns are in NETWORK byte order. */
 
 typedef struct adns__state *adns_state;