X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b47c832e5529dc6c632536b4665a005f0a85aec8..053950ae73612200beb95afd1ded05c2f25b24bf:/src/tiff/tiffcomp.h diff --git a/src/tiff/tiffcomp.h b/src/tiff/tiffcomp.h index 56e61e0522..86c0a15e57 100644 --- a/src/tiff/tiffcomp.h +++ b/src/tiff/tiffcomp.h @@ -83,7 +83,7 @@ #include #define BSDTYPES #define HAVE_UNISTD_H 0 -#elif defined(_WINDOWS) || defined(__WIN32__) || defined(_Windows) +#elif (defined(_WINDOWS) || defined(__WIN32__) || defined(_Windows) || defined(_WIN32)) && !defined(unix) #define BSDTYPES #elif defined(OS2_16) || defined(OS2_32) #define BSDTYPES @@ -119,11 +119,17 @@ * then define BSDTYPES in your Makefile. */ #if defined(BSDTYPES) +# ifndef _BSDTYPES_DEFINED +# ifndef __u_char_defined typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; -#endif +# define __u_char_defined +# endif /* __u_char_defined */ +# define _BSDTYPES_DEFINED +# endif /* _BSDTYPES_DEFINED */ +#endif /* BSDTYPES */ /* * dblparam_t is the type that a double precision