sipxtacklib  Version 3.3
types.h
Go to the documentation of this file.
1 /*
2 //
3 // Copyright (C) 2004-2006 SIPfoundry Inc.
4 // Licensed by SIPfoundry under the LGPL license.
5 //
6 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
7 // Licensed to SIPfoundry under a Contributor Agreement.
8 //
9 // $$
11 */
12 
13 #ifndef INCLUDE_RESPARSE_TYPES_H
14 #define INCLUDE_RESPARSE_TYPES_H
15 
16 #include <limits.h>
17 
18 #ifdef WINCE
19 # include <types.h>
20 #else
21 # include <sys/types.h>
22 #endif
23 
24 #if defined (_WIN32) /* Use Columbia versions for win32 only --GAT */
25 # include "resparse/wnt/sysdep.h"
26 #elif defined (_VXWORKS)
27 # include <netinet/in.h>
28 #endif
29 
30 typedef unsigned char boolean;
31 
32 #ifdef __STDC__
33 #define MAX32U 0xFFFFFFFFU
34 #else
35 #define MAX32U 0xFFFFFFFF
36 #endif
37 #define MAX32 0x8FFFFFFF
38 
39 /* 32 bit machines */
40 #ifndef RTP_VERSION
41 #if ULONG_MAX == MAX32U
42 typedef short int16;
43 typedef int int32;
44 typedef unsigned long u_int32;
45 typedef unsigned short u_int16;
46 /* 16 bit machines */
47 #elif ULONG_MAX == 0xFFFF
48 typedef int int16;
49 typedef long int32;
50 typedef unsigned long u_int32;
51 typedef unsigned int u_int16;
52 /* 64 bit machines */
53 #else
54 typedef short int16;
55 typedef int int32;
56 typedef unsigned int u_int32;
57 typedef unsigned short u_int16;
58 #endif
59 typedef char int8;
60 typedef unsigned char u_int8;
61 
62 #endif /* RTP_VERSION */
63 
64 /* Kludge if we can't get 64-bit integers. */
65 #ifndef NOLONGLONG
66 typedef long long int int64;
67 typedef unsigned long long u_int64;
68 #else
69 typedef long int int64;
70 #endif /* NOLONGLONG */
71 
72 #endif /* INCLUDE_RESPARSE_TYPES_H */
unsigned char boolean
Definition: types.h:30
unsigned char u_int8
Definition: types.h:60
short int16
Definition: types.h:54
long long int int64
Definition: types.h:66
unsigned short u_int16
Definition: types.h:57
int int32
Definition: types.h:55
unsigned int u_int32
Definition: types.h:56
unsigned long long u_int64
Definition: types.h:67
char int8
Definition: types.h:59

sipXtackLib home page