chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
+ * Move `extern "C" {' to after #include <...>'s.
[adns]
/
src
/
adns.h
diff --git
a/src/adns.h
b/src/adns.h
index 42873134f3c9a45ebb4a16833fbb68592cbbb887..9478112b1d3f96614ca25d96f06a3cc1b9530fa8 100644
(file)
--- a/
src/adns.h
+++ b/
src/adns.h
@@
-56,9
+56,6
@@
#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>
@@
-68,6
+65,10
@@
extern "C" { /* I really dislike this - iwj. */
#include <sys/time.h>
#include <unistd.h>
#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;
/* All struct in_addr anywhere in adns are in NETWORK byte order. */
typedef struct adns__state *adns_state;