summaryrefslogtreecommitdiff
path: root/src/XpmI.h
diff options
context:
space:
mode:
authorJason Rumney <jasonr@gnu.org>2007-08-06 12:52:52 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-08-06 12:52:52 -0700
commit43dfc6be8128139888426d8c709aa78efc207953 (patch)
tree4f0f6f9f6ccb5d3e1db56ebebf21e3faaa37b81d /src/XpmI.h
parent290f0b9115428dab0cbf2880d154468c557b3e7e (diff)
X.Org Bug #11863: Build libXpm on MS Windows (with MinGW)
* src/XpmI.h [FOR_MSW]: Include simx.h instead of real X headers. * src/simx.h (_XFUNCPROTOBEGIN, _XFUNCPROTOEND, NO_ZPIPE): Define. (XAllocColor): Fix arg list in prototype. (bzero, close, fdopen, index, rindex, open, strdup, O_RDONLY): Map to W32 equivalents. * src/RdFToI.c [FOR_MSW]: Include fcntl.h.
Diffstat (limited to 'src/XpmI.h')
-rw-r--r--src/XpmI.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/XpmI.h b/src/XpmI.h
index 70844ac..e9f28cc 100644
--- a/src/XpmI.h
+++ b/src/XpmI.h
@@ -58,9 +58,13 @@
extern FILE *popen();
#endif
+#ifdef FOR_MSW
+#include "simx.h"
+#else
#include <X11/Xos.h>
#include <X11/Xfuncs.h>
#include <X11/Xmd.h>
+#endif
#ifdef VMS
#include <unixio.h>