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 (16 years 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

# User Rev Content
1 greg 3.4 /* RCSid $Id: tifftypes.h,v 3.3 2008/05/11 04:55:01 greg Exp $ */
2 greg 3.1 /* 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 greg 3.3 #ifndef HAVE_INT8
13 greg 3.1 #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 greg 3.3 #define HAVE_INT8
20     #endif
21     #ifndef HAVE_INT16
22 greg 3.1 typedef short int16;
23     typedef unsigned short uint16; /* sizeof (uint16) must == 2 */
24 greg 3.3 #define HAVE_INT16
25     #endif
26     #ifndef HAVE_INT32
27 greg 3.2 #if defined(__alpha) || (defined(_MIPS_SZLONG) && _MIPS_SZLONG == 64) || defined(__LP64__) || defined(__x86_64)
28 greg 3.1 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 greg 3.3 #define HAVE_INT32
35     #endif
36 greg 3.1 #endif /* _TIFF_DATA_TYPEDEFS_ */