~ubuntu-branches/ubuntu/intrepid/graphicsmagick/intrepid

« back to all changes in this revision

Viewing changes to magick/magick_types.h.in

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2006-05-06 16:28:08 UTC
  • Revision ID: james.westby@ubuntu.com-20060506162808-vt2ni3r5nytcszms
Tags: upstream-1.1.7
ImportĀ upstreamĀ versionĀ 1.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  Copyright (C) 2003 GraphicsMagick Group
 
3
 
 
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.
 
7
 
 
8
  GraphicsMagick types typedefs
 
9
*/
 
10
 
 
11
#ifndef _MAGICK_TYPES_H
 
12
#define _MAGICK_TYPES_H
 
13
 
 
14
#if defined(__cplusplus) || defined(c_plusplus)
 
15
extern "C" {
 
16
#endif
 
17
 
 
18
/*
 
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
 
28
*/
 
29
 
 
30
#if defined(WIN32) && !defined(__MINGW32__)
 
31
 
 
32
  /* The following typedefs are used for WIN32 */
 
33
  typedef signed char   magick_int8_t;
 
34
  typedef unsigned char  magick_uint8_t;
 
35
 
 
36
  typedef signed short  magick_int16_t;
 
37
  typedef unsigned short magick_uint16_t;
 
38
 
 
39
  typedef signed int  magick_int32_t;
 
40
  typedef unsigned int magick_uint32_t;
 
41
 
 
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;
 
45
 
 
46
#else
 
47
 
 
48
  /* The following typedefs are subtituted when using Unixish configure */
 
49
  typedef @INT8_T@   magick_int8_t;
 
50
  typedef @UINT8_T@  magick_uint8_t;
 
51
 
 
52
  typedef @INT16_T@  magick_int16_t;
 
53
  typedef @UINT16_T@ magick_uint16_t;
 
54
 
 
55
  typedef @INT32_T@  magick_int32_t;
 
56
  typedef @UINT32_T@ magick_uint32_t;
 
57
 
 
58
  typedef @INT64_T@  magick_int64_t;
 
59
  typedef @UINT64_T@ magick_uint64_t;
 
60
 
 
61
#endif
 
62
 
 
63
  /* 64-bit file and blob offset type */
 
64
  typedef magick_int64_t magick_off_t;
 
65
 
 
66
#if defined(__cplusplus) || defined(c_plusplus)
 
67
}
 
68
#endif /* defined(__cplusplus) || defined(c_plusplus) */
 
69
 
 
70
#endif /* _MAGICK_TYPES_H */