diff options
author | Dave Bodenstab <the.tick@gmx.com> | 2012-02-22 12:04:54 +0000 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-09-22 12:47:34 -0700 |
commit | bc1b4962f048cfa33b76be46493e10cfb256fe98 (patch) | |
tree | deeb5261798aec4ef7c946916fbfa8b04b82bc5b /src/WrFFrI.c | |
parent | e42ca7b484418b169fd19a4c68e23ad2a6ec7a11 (diff) |
Windows build fixes
https://bugs.freedesktop.org/show_bug.cgi?id=46475
https://bugs.freedesktop.org/attachment.cgi?id=57479
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/WrFFrI.c')
-rw-r--r-- | src/WrFFrI.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/WrFFrI.c b/src/WrFFrI.c index 067c96b..328c987 100644 --- a/src/WrFFrI.c +++ b/src/WrFFrI.c @@ -51,6 +51,12 @@ #include "fcntl.h" +#ifdef FOR_MSW +#define O_WRONLY _O_WRONLY +#define O_CREAT _O_CREAT +#define O_TRUNC _O_TRUNC +#endif + /* MS Windows define a function called WriteFile @#%#&!!! */ LFUNC(xpmWriteFile, int, (FILE *file, XpmImage *image, const char *name, XpmInfo *info)); |