Blame view

3rdparty/libosip2-5.3.0/include/osipparser2/internal.h 3.04 KB
73ef4ff3   Hu Chunming   提交三方库
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
  /*
    The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
    Copyright (C) 2001-2020 Aymeric MOIZARD amoizard@antisip.com
  
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.
  
    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.
  
    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
  
  #ifndef _INTERNALOSIPPARSER_H_
  #define _INTERNALOSIPPARSER_H_
  
  #if defined(HAVE_CONFIG_H)
  #include <osip-config.h>
  #endif
  
  #if defined(__PALMOS__) && (__PALMOS__ >= 0x06000000)
  #define HAVE_CTYPE_H 1
  #define HAVE_STRING_H 1
  #define HAVE_SYS_TYPES_H 1
  #define HAVE_TIME_H 1
  #define HAVE_STDARG_H 1
  
  #elif defined(__VXWORKS_OS__) || defined(__rtems__)
  #define HAVE_STRING_H 1
  #define HAVE_TIME_H 1
  #define HAVE_SYS_TIME_H 1
  #define HAVE_SYS_TYPES_H 1
  #define HAVE_STDARG_H 1
  
  #elif defined _WIN32_WCE
  
  #define HAVE_CTYPE_H 1
  #define HAVE_STRING_H 1
  #define HAVE_TIME_H 1
  #define HAVE_STDARG_H 1
  
  #define snprintf _snprintf
  #define vsnprintf _vsnprintf
  #elif defined(WIN32)
  
  #define HAVE_CTYPE_H 1
  #define HAVE_STRING_H 1
  #define HAVE_SYS_TYPES_H 1
  #define HAVE_TIME_H 1
  #define HAVE_STDARG_H 1
  
  #define HAVE_LOCALTIME 1
  
  #if (_MSC_VER < 1900)
  #define snprintf _snprintf
  #define vsnprintf _vsnprintf
  #endif
  #if (_MSC_VER >= 1700) && !defined(_USING_V110_SDK71_)
  #include <winapifamily.h>
  #endif
  
  /* use win32 crypto routines for random number generation */
  /* only use for vs .net (compiler v. 1300) or greater */
  #if _MSC_VER >= 1300
  #define WIN32_USE_CRYPTO 1
  #if (_MSC_VER >= 1700) && !defined(_USING_V110_SDK71_)
  #if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP)
  #undef WIN32_USE_CRYPTO
  #elif defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_PC_APP)
  #undef WIN32_USE_CRYPTO
  #endif
  #endif
  #endif
  
  #endif
  
  #if defined(HAVE_STRING_H)
  #include <string.h>
  #elif defined(HAVE_STRINGS_H)
  #include <strings.h>
  #else
  #include <string.h>
  #endif
  
  #include <stdio.h>
  #include <stdlib.h>
  
  #if defined(HAVE_SYS_TYPES_H)
  #include <sys/types.h>
  #endif
  
  #ifdef HAVE_TIME_H
  #include <time.h>
  #endif
  
  #if defined(HAVE_SYS_TIME_H)
  #include <sys/time.h>
  #endif
  
  #if defined(__arc__)
  #include "includes_api.h"
  #include "os_cfg_pub.h"
  #include <posix_time_pub.h>
  #endif
  
  #ifdef __PSOS__
  #define VA_START(a, f) va_start(a, f)
  #include "pna.h"
  #include "stdlib.h"
  #include "time.h"
  #define timercmp(tvp, uvp, cmp) ((tvp)->tv_sec cmp(uvp)->tv_sec || (tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp(uvp)->tv_usec)
  #define snprintf osip_snprintf
  #ifndef INT_MAX
  #define INT_MAX 0x7FFFFFFF
  #endif
  #endif
  
  #endif /* #ifndef _INTERNAL_H_ */