sync master with lastest vba changes
[ooovba.git] / dmake / itypes.h
blob6ff9bc00ea15ff9e1eca6f7dae42cd4c812bb155
1 /* RCS $Id: itypes.h,v 1.3 2004-04-21 14:10:32 svesik Exp $
2 --
3 -- SYNOPSIS
4 -- Type declarations for common types
5 --
6 -- DESCRIPTION
7 -- portable type declarations.
8 --
9 -- AUTHOR
10 -- Dennis Vadura, dvadura@dmake.wticorp.com
12 -- WWW
13 -- http://dmake.wticorp.com/
15 -- COPYRIGHT
16 -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
17 --
18 -- This program is NOT free software; you can redistribute it and/or
19 -- modify it under the terms of the Software License Agreement Provided
20 -- in the file <distribution-root>/readme/license.txt.
22 -- LOG
23 -- Use cvs log to obtain detailed change logs.
27 #ifndef ITYPES_h
28 #define ITYPES_h
30 #ifndef HAVE_INT8
31 typedef unsigned char uint8;
32 #endif
34 #ifndef HAVE_INT8
35 typedef signed char int8;
36 #endif
38 #if SIZEOF_SHORT == 2
39 # ifndef HAVE_UINT16
40 typedef unsigned short uint16;
41 # endif
43 # ifndef HAVE_INT16
44 typedef short int16;
45 # endif
47 #elif SIZEOF_INT == 2
49 # ifndef HAVE_UNIT16
50 typedef unsigned int uint16;
51 # endif
53 # ifndef HAVE_INT16
54 typedef int int16;
55 # endif
56 #else
57 # ifndef HAVE_INT16
58 # error "No 2 byte type, you lose."
59 # endif
60 #endif
61 #if SIZEOF_INT == 4
62 # ifndef HAVE_UINT32
63 typedef unsigned int uint32;
64 # endif
65 # ifndef HAVE_INT32
66 typedef int int32;
67 # endif
68 #elif SIZEOF_LONG == 4
69 # ifndef HAVE_UINT32
70 typedef unsigned long uint32;
71 # endif
72 # ifndef HAVE_INT32
73 typedef long int32;
74 # endif
75 #else
76 # ifndef HAVE_INT32
77 # error "No 4 byte type, you lose."
78 # endif
79 #endif
81 #endif