blob: 9b0ef44cb6dab4cda97b3ef7479158da3ddf1984 (
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
|
/*
===========================================================================
File: TYPEDEF.H v.1.0 - 26.Jan.2000
===========================================================================
ITU-T STL BASIC OPERATORS
TYPE DEFINITION PROTOTYPES
History:
26.Jan.00 v1.0 Incorporated to the STL from updated G.723.1/G.729
basic operator library (based on basic_op.h)
============================================================================
*/
#ifndef TYPEDEF_H
#define TYPEDEF_H "$Id $"
#if 1
/* Use PJLIB types definitions (for PJLIB sync'd platforms compatibility?
* e.g: mingw32 was not supported by the original version).
*/
#include <pj/types.h>
typedef pj_int8_t Word8;
typedef pj_int16_t Word16;
typedef pj_int32_t Word32;
typedef pj_uint16_t UWord16;
typedef pj_uint32_t UWord32;
typedef int Flag;
#else
#include <limits.h>
#if defined(__BORLANDC__) || defined(__WATCOMC__) || defined(_MSC_VER) || defined(__ZTC__) || defined(__CYGWIN__)
typedef signed char Word8;
typedef short Word16;
typedef long Word32;
typedef int Flag;
#elif defined(__sun)
typedef signed char Word8;
typedef short Word16;
typedef long Word32;
typedef int Flag;
#elif defined(__unix__) || defined(__unix)
typedef signed char Word8;
typedef short Word16;
typedef int Word32;
typedef int Flag;
#endif
/* define 16 bit unsigned types for G.722.1 */
#if INT_MAX == 32767
typedef unsigned int UWord16;
#elif SHRT_MAX == 32767
typedef unsigned short UWord16;
#endif
/* define 32 bit unsigned types for G.722.1 */
#if INT_MAX == 2147483647L
typedef unsigned int UWord32;
#elif LONG_MAX == 2147483647L
typedef unsigned long UWord32;
#endif
#endif /* if 0 */
#endif /* TYPEDEF_H */
|