| 1 |
/* RCSid $Id: tifftypes.h,v 3.1 2003/06/20 00:25:49 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 |
#ifdef __STDC__
|
| 13 |
typedef signed char int8; /* NB: non-ANSI compilers may not grok */
|
| 14 |
#else
|
| 15 |
typedef char int8;
|
| 16 |
#endif
|
| 17 |
typedef unsigned char uint8;
|
| 18 |
typedef short int16;
|
| 19 |
typedef unsigned short uint16; /* sizeof (uint16) must == 2 */
|
| 20 |
#if defined(__alpha) || (defined(_MIPS_SZLONG) && _MIPS_SZLONG == 64) || defined(__LP64__) || defined(__x86_64)
|
| 21 |
typedef int int32;
|
| 22 |
typedef unsigned int uint32; /* sizeof (uint32) must == 4 */
|
| 23 |
#else
|
| 24 |
typedef long int32;
|
| 25 |
typedef unsigned long uint32; /* sizeof (uint32) must == 4 */
|
| 26 |
#endif
|
| 27 |
#endif /* _TIFF_DATA_TYPEDEFS_ */
|