summaryrefslogtreecommitdiff
path: root/lib/libXpm/src/simx.h
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2007-09-30 08:38:38 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2007-09-30 08:38:38 +0000
commitf7c76eb933b14f483e672c1058e0d6ffc71579ed (patch)
treea5e6e31b792eb40b96d74dc91e979c04f755887f /lib/libXpm/src/simx.h
parentab46062b36b731294fec4d86ffbae38627a5a46f (diff)
libXpm 3.5.7
Diffstat (limited to 'lib/libXpm/src/simx.h')
-rw-r--r--lib/libXpm/src/simx.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/libXpm/src/simx.h b/lib/libXpm/src/simx.h
index 001cfdb4e..7c4c4b9ec 100644
--- a/lib/libXpm/src/simx.h
+++ b/lib/libXpm/src/simx.h
@@ -40,6 +40,9 @@
#ifdef FOR_MSW
#include "windows.h" /* MS windows GDI types */
+#define _XFUNCPROTOBEGIN
+#define _XFUNCPROTOEND
+#define NO_ZPIPE
/*
* minimal portability layer between ansi and KR C
@@ -101,7 +104,7 @@ extern "C" {
/* color related */
FUNC(XParseColor, int, (Display *, Colormap *, char *, XColor *));
- FUNC(XAllocColor, int, (Display *, Colormap *, XColor *));
+ FUNC(XAllocColor, int, (Display *, Colormap, XColor *));
FUNC(XQueryColors, void, (Display *display, Colormap *colormap,
XColor *xcolors, int ncolors));
FUNC(XFreeColors, int, (Display *d, Colormap cmap,
@@ -134,6 +137,18 @@ typedef BOOL Bool; /* take MSW bool */
#undef LFUNC
#undef FUNC
+/* Some functions and constants that have non-standard names in the
+ MS library. */
+#define bzero(addr,sz) memset(addr, 0, sz)
+#define close _close
+#define fdopen _fdopen
+#define index strchr
+#define open _open
+#define O_RDONLY _O_RDONLY
+#define rindex strrchr
+#define strdup _strdup
+
+
#endif /* def FOR_MSW */
#endif /* _SIMX_H */