X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2109485b376b0f198c48312e673a2fca8e424225..cc9a39576ab6edb139c9bb77d01f4118853e04d2:/src/tiff/tiffcomp.h diff --git a/src/tiff/tiffcomp.h b/src/tiff/tiffcomp.h index 89c2a57c19..cb4a659191 100644 --- a/src/tiff/tiffcomp.h +++ b/src/tiff/tiffcomp.h @@ -52,21 +52,13 @@ #endif #if defined(__MWERKS__) || defined(THINK_C) -#ifdef __MACH__ -#include -#else #include #include #endif -#endif - -#if defined (__SC__) && !defined (__DMC__) - #define __SYMANTEC__ -#endif #include -#if defined(__PPCC__) || defined(__SYMANTEC__) || defined(__MRC__) +#if defined(__PPCC__) || ( defined(__SC__) && !defined(__DMC__) ) || defined(__MRC__) #include #elif !defined(__MWERKS__) && !defined(THINK_C) && !defined(__acornriscos) && !defined(applec) #include @@ -87,16 +79,12 @@ * additional includes are also done to pull in the * appropriate definitions we're looking for. */ -#if defined(__MWERKS__) || defined(THINK_C) || defined(__PPCC__) || defined(__SYMANTEC__) || defined(__MRC__) +#if defined(__MWERKS__) || defined(THINK_C) || defined(__PPCC__) || ( defined(__SC__) && !defined(__DMC__) ) || defined(__MRC__) #include -#ifndef __MACH__ #define BSDTYPES -#endif #define HAVE_UNISTD_H 0 -#elif defined(_WINDOWS) || defined(__WIN32__) || defined(_Windows) -#define BSDTYPES -#elif defined(__DJGPP__) -#define BSDTYPES +#elif (defined(_WINDOWS) || defined(__WIN32__) || defined(_Windows) || defined(_WIN32)) && !defined(unix) +#define BSDTYPES #elif defined(OS2_16) || defined(OS2_32) #define BSDTYPES #elif defined(__acornriscos) @@ -131,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 @@ -143,7 +137,7 @@ typedef unsigned long u_long; * stack (when coerced by the compiler). */ /* Note: on MacPowerPC "extended" is undefined. So only use it for 68K-Macs */ -#if defined(__SYMANTEC__) || defined(THINK_C) +#if ( defined(__SC__) && !defined(__DMC__) ) || defined(THINK_C) typedef extended dblparam_t; #else typedef double dblparam_t;