sipxportlib  Version 3.3
UtlDefs.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006-2013 SIPez LLC. All rights reserved.
3 //
4 // Copyright (C) 2004-2006 SIPfoundry Inc.
5 // Licensed by SIPfoundry under the LGPL license.
6 //
7 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
8 // Licensed to SIPfoundry under a Contributor Agreement.
9 //
10 // $$
12 
13 
14 #ifndef _UtlDefs_h_
15 #define _UtlDefs_h_
16 
17 // SYSTEM INCLUDES
18 // APPLICATION INCLUDES
19 // DEFINES
20 #ifndef FALSE
21 #define FALSE ((UtlBoolean)(1==0))
22 #endif
23 
24 #ifndef TRUE
25 #define TRUE ((UtlBoolean)(1==1))
26 #endif
27 
28 #ifndef NULL
29 #define NULL 0
30 #endif
31 
32 #define UTL_NOT_FOUND ((size_t)-1)
33 
34 // MACROS
35 // EXTERNAL FUNCTIONS
36 // EXTERNAL VARIABLES
37 // CONSTANTS
38 // STRUCTS
39 // TYPEDEFS
40 
41 typedef int UtlBoolean ;
42 
43 #if defined(_MSC_VER) && !defined(__cplusplus)
44 # define inline __inline
45 #endif // _DEBUG
46 
47 #if defined(_MSC_VER) && (_MSC_VER < 1900)
48 #define snprintf _snprintf
49 #endif
50 
58 #if defined(_WIN32)
59 # define FORMAT_INTLL "I64"
60 #elif defined(__pingtel_on_posix__)
61 # if __WORDSIZE == 64
62 # define FORMAT_INTLL "l"
63 # else
64 # define FORMAT_INTLL "ll"
65 # endif
66 #else
67 # error Unsupported target platform.
68 #endif
69 
70 typedef const char* const UtlContainableType ;
71 
72 // FORWARD DECLARATIONS
73 
74 #endif // _UtlDefs_h_
75 
const char *const UtlContainableType
Definition: UtlDefs.h:70
int UtlBoolean
Definition: UtlDefs.h:41