X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/75cdd73f806c47cd4a3d5b89754356806ce4e1a7..2e14066008229145e2da7b9f05a478ce38631f83:/src/tiff/libtiff/tif_config.h diff --git a/src/tiff/libtiff/tif_config.h b/src/tiff/libtiff/tif_config.h index 631537ffe2..b0840c777f 100644 --- a/src/tiff/libtiff/tif_config.h +++ b/src/tiff/libtiff/tif_config.h @@ -32,7 +32,7 @@ #define SIZEOF_LONG 4 #endif -#if __BIG_ENDIAN__ +#ifdef __BIG_ENDIAN__ /* Set the native cpu bit order */ #define HOST_FILLORDER FILLORDER_MSB2LSB @@ -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__ */