summaryrefslogtreecommitdiff
path: root/dmake/itypes.h
blob: 86f7b54a5d651b0a1cb2887f16eb6d18c3044d0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/* RCS  $Id: itypes.h,v 1.3 2004-04-21 14:10:32 svesik Exp $
--
-- SYNOPSIS
--      Type declarations for common types
--
-- DESCRIPTION
--  portable type declarations.
--
-- AUTHOR
--      Dennis Vadura, dvadura@dmake.wticorp.com
--
-- WWW
--      http://dmake.wticorp.com/
--
-- COPYRIGHT
--      Copyright (c) 1996,1997 by WTI Corp.  All rights reserved.
--
--      This program is NOT free software; you can redistribute it and/or
--      modify it under the terms of the Software License Agreement Provided
--      in the file <distribution-root>/readme/license.txt.
--
-- LOG
--      Use cvs log to obtain detailed change logs.
*/


#ifndef ITYPES_h
#define ITYPES_h

#ifndef HAVE_INT8
  typedef unsigned char uint8;
#endif

#ifndef HAVE_INT8
  typedef signed char int8;
#endif

#if SIZEOF_SHORT == 2
# ifndef HAVE_UINT16
    typedef unsigned short uint16;
# endif

# ifndef HAVE_INT16
    typedef short int16;
# endif

#elif SIZEOF_INT == 2

# ifndef HAVE_UNIT16
    typedef unsigned int uint16;
# endif

# ifndef HAVE_INT16
     typedef int int16;
# endif
#else
# ifndef HAVE_INT16
#   error "No 2 byte type, you lose."
# endif
#endif
#if SIZEOF_INT == 4
# ifndef HAVE_UINT32
    typedef unsigned int uint32;
# endif
# ifndef HAVE_INT32
    typedef int int32;
# endif
#elif SIZEOF_LONG == 4
# ifndef HAVE_UINT32
    typedef unsigned long uint32;
# endif
# ifndef HAVE_INT32
    typedef long int32;
# endif
#else
# ifndef HAVE_INT32
#   error "No 4 byte type, you lose."
# endif
#endif

#endif