aboutsummaryrefslogtreecommitdiff
path: root/Source/DOH
diff options
context:
space:
mode:
Diffstat (limited to 'Source/DOH')
-rw-r--r--Source/DOH/doh.h10
-rw-r--r--Source/DOH/dohint.h4
2 files changed, 9 insertions, 5 deletions
diff --git a/Source/DOH/doh.h b/Source/DOH/doh.h
index af33933be..8a8c918f1 100644
--- a/Source/DOH/doh.h
+++ b/Source/DOH/doh.h
@@ -14,6 +14,13 @@
#ifndef _DOH_H
#define _DOH_H
+#ifndef MACSWIG
+#include "swigconfig.h"
+#endif
+
+#include <stdio.h>
+#include <stdarg.h>
+
/* Set the namespace prefix for DOH API functions. This can be used to control
visibility of the functions in libraries */
@@ -131,9 +138,6 @@
#define DohNext DOH_NAMESPACE(Next)
#endif
-#include <stdio.h>
-#include <stdarg.h>
-
#define DOH_MAJOR_VERSION 0
#define DOH_MINOR_VERSION 1
diff --git a/Source/DOH/dohint.h b/Source/DOH/dohint.h
index 87cee1259..609491615 100644
--- a/Source/DOH/dohint.h
+++ b/Source/DOH/dohint.h
@@ -15,6 +15,8 @@
#ifndef _DOHINT_H
#define _DOHINT_H
+#include "doh.h"
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -22,8 +24,6 @@
#include <ctype.h>
#include <stdarg.h>
-#include "doh.h"
-
/* Hash objects */
typedef struct {
DOH *(*doh_getattr)(DOH *obj, DOH *name); /* Get attribute */