2
Copyright (C) 2003 GraphicsMagick Group
4
This program is covered by multiple licenses, which are described in
5
Copyright.txt. You should have received a copy of Copyright.txt with this
6
package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
8
GraphicsMagick types typedefs
11
#ifndef _MAGICK_TYPES_H
12
#define _MAGICK_TYPES_H
14
#if defined(__cplusplus) || defined(c_plusplus)
19
Assign ANSI C stdint.h-like typedefs based on the sizes of native types
20
magick_int8_t -- -128 to 127
21
magick_uint8_t -- 0 to 255
22
magick_int16_t -- -32,768 to 32,767
23
magick_uint16_t -- 0 to 65,535
24
magick_int32_t -- -2,147,483,648 to 2,147,483,647
25
magick_uint32_t -- 0 to 4,294,967,295
26
magick_int64_t -- -9,223,372,036,854,775,807 to 9,223,372,036,854,775,807
27
magick_uint64_t -- 0 to 18,446,744,073,709,551,615
30
#if defined(WIN32) && !defined(__MINGW32__)
32
/* The following typedefs are used for WIN32 */
33
typedef signed char magick_int8_t;
34
typedef unsigned char magick_uint8_t;
36
typedef signed short magick_int16_t;
37
typedef unsigned short magick_uint16_t;
39
typedef signed int magick_int32_t;
40
typedef unsigned int magick_uint32_t;
42
/* Maybe we need to do something different for __BORLANDC__ here? */
43
typedef signed __int64 magick_int64_t;
44
typedef unsigned __int64 magick_uint64_t;
48
/* The following typedefs are subtituted when using Unixish configure */
49
typedef @INT8_T@ magick_int8_t;
50
typedef @UINT8_T@ magick_uint8_t;
52
typedef @INT16_T@ magick_int16_t;
53
typedef @UINT16_T@ magick_uint16_t;
55
typedef @INT32_T@ magick_int32_t;
56
typedef @UINT32_T@ magick_uint32_t;
58
typedef @INT64_T@ magick_int64_t;
59
typedef @UINT64_T@ magick_uint64_t;
63
/* 64-bit file and blob offset type */
64
typedef magick_int64_t magick_off_t;
66
#if defined(__cplusplus) || defined(c_plusplus)
68
#endif /* defined(__cplusplus) || defined(c_plusplus) */
70
#endif /* _MAGICK_TYPES_H */