aboutsummaryrefslogtreecommitdiff
path: root/Source/DOH
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2006-02-19 22:16:56 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2006-02-19 22:16:56 +0000
commit6b6147f03beaa9bf3968ea6b5dabceb7ec0b7cff (patch)
tree1f661fd6fcfcf4e5bcf13cd52f01b610e35db921 /Source/DOH
parentf4428ffab0f1b88c3f9f230edf46554039a657f3 (diff)
downloadswig-6b6147f03beaa9bf3968ea6b5dabceb7ec0b7cff.tar.gz
Deal with Microsofts attempt at deprecating C standard runtime functions for proprietary ones in Visual Studio 2005
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8847 626c5289-ae23-0410-ae9c-e8d60b6d4f22
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 */