1 |
/* RCSid $Id: tifftypes.h,v 3.3 2008/05/11 04:55:01 greg Exp $ */ |
2 |
/* The following is lifted straight out of tiff.h */ |
3 |
#ifndef _TIFF_DATA_TYPEDEFS_ |
4 |
#define _TIFF_DATA_TYPEDEFS_ |
5 |
/* |
6 |
* Intrinsic data types required by the file format: |
7 |
* |
8 |
* 8-bit quantities int8/uint8 |
9 |
* 16-bit quantities int16/uint16 |
10 |
* 32-bit quantities int32/uint32 |
11 |
*/ |
12 |
#ifndef HAVE_INT8 |
13 |
#ifdef __STDC__ |
14 |
typedef signed char int8; /* NB: non-ANSI compilers may not grok */ |
15 |
#else |
16 |
typedef char int8; |
17 |
#endif |
18 |
typedef unsigned char uint8; |
19 |
#define HAVE_INT8 |
20 |
#endif |
21 |
#ifndef HAVE_INT16 |
22 |
typedef short int16; |
23 |
typedef unsigned short uint16; /* sizeof (uint16) must == 2 */ |
24 |
#define HAVE_INT16 |
25 |
#endif |
26 |
#ifndef HAVE_INT32 |
27 |
#if defined(__alpha) || (defined(_MIPS_SZLONG) && _MIPS_SZLONG == 64) || defined(__LP64__) || defined(__x86_64) |
28 |
typedef int int32; |
29 |
typedef unsigned int uint32; /* sizeof (uint32) must == 4 */ |
30 |
#else |
31 |
typedef long int32; |
32 |
typedef unsigned long uint32; /* sizeof (uint32) must == 4 */ |
33 |
#endif |
34 |
#define HAVE_INT32 |
35 |
#endif |
36 |
#endif /* _TIFF_DATA_TYPEDEFS_ */ |