From ecb22f9e0a2a10457dae28f39510cf704e0c7796 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 24 Feb 2008 23:04:57 +0000 Subject: [PATCH] WinCE adjustments git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/tiff/libtiff/tif_config.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/tiff/libtiff/tif_config.h b/src/tiff/libtiff/tif_config.h index 631537ffe2..f85ecbe635 100644 --- a/src/tiff/libtiff/tif_config.h +++ b/src/tiff/libtiff/tif_config.h @@ -110,4 +110,21 @@ typedef long int32; #endif -#endif +#ifdef _WIN32_WCE +# undef HAVE_FCNTL_H +# undef HAVE_SYS_TYPES_H + + /* + CE headers don't define these standard constants (not even underscored + versions), provide our own replacements as they seem to be only used in + libtiff own code anyhow. + */ +# define O_RDONLY 0x0000 +# define O_WRONLY 0x0001 +# define O_RDWR 0x0002 +# define O_CREAT 0x0100 +# define O_TRUNC 0x0200 +# define O_EXCL 0x0400 +#endif /* _WIN32_WCE */ + +#endif /* __APPLE__/!__APPLE__ */ -- 2.45.2