ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/tifftypes.h
Revision: 3.2
Committed: Wed Oct 27 23:23:47 2004 UTC (19 years, 6 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R7P1, rad3R7P2, rad3R6P1, rad3R8, rad3R9
Changes since 3.1: +2 -2 lines
Log Message:
Added check for 64-bit AMD processor to int32 type

File Contents

# User Rev Content
1 greg 3.2 /* RCSid $Id: tifftypes.h,v 3.1 2003/06/20 00:25:49 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     #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 greg 3.2 #if defined(__alpha) || (defined(_MIPS_SZLONG) && _MIPS_SZLONG == 64) || defined(__LP64__) || defined(__x86_64)
21 greg 3.1 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_ */