ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/tifftypes.h
Revision: 3.4
Committed: Sat May 31 19:38:36 2008 UTC (15 years, 11 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 3.3: +1 -1 lines
State: FILE REMOVED
Log Message:
Eliminated tifftypes.h in favor of tiff.h throughout

File Contents

# Content
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_ */