20 #ifndef _INTERNALOSIPPARSER_H_
21 #define _INTERNALOSIPPARSER_H_
23 #if defined(HAVE_CONFIG_H)
24 #include <osip-config.h>
27 #if defined(__PALMOS__) && (__PALMOS__ >= 0x06000000)
28 #define HAVE_CTYPE_H 1
29 #define HAVE_STRING_H 1
30 #define HAVE_SYS_TYPES_H 1
32 #define HAVE_STDARG_H 1
34 #elif defined(__VXWORKS_OS__) || defined(__rtems__)
35 #define HAVE_STRING_H 1
37 #define HAVE_SYS_TIME_H 1
38 #define HAVE_SYS_TYPES_H 1
39 #define HAVE_STDARG_H 1
41 #elif defined _WIN32_WCE
43 #define HAVE_CTYPE_H 1
44 #define HAVE_STRING_H 1
46 #define HAVE_STDARG_H 1
48 #define snprintf _snprintf
49 #define vsnprintf _vsnprintf
52 #define HAVE_CTYPE_H 1
53 #define HAVE_STRING_H 1
54 #define HAVE_SYS_TYPES_H 1
56 #define HAVE_STDARG_H 1
58 #define HAVE_LOCALTIME 1
61 #define snprintf _snprintf
62 #define vsnprintf _vsnprintf
64 #if (_MSC_VER >= 1700) && !defined(_USING_V110_SDK71_)
65 #include <winapifamily.h>
71 #define WIN32_USE_CRYPTO 1
72 #if (_MSC_VER >= 1700) && !defined(_USING_V110_SDK71_)
73 #if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP)
74 #undef WIN32_USE_CRYPTO
75 #elif defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_PC_APP)
76 #undef WIN32_USE_CRYPTO
83 #if defined(HAVE_STRING_H)
85 #elif defined(HAVE_STRINGS_H)
94 #if defined(HAVE_SYS_TYPES_H)
95 #include <sys/types.h>
102 #if defined(HAVE_SYS_TIME_H)
103 #include <sys/time.h>
107 #include "includes_api.h"
108 #include "os_cfg_pub.h"
109 #include <posix_time_pub.h>
113 #define VA_START(a, f) va_start(a, f)
117 #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)
118 #define snprintf osip_snprintf
120 #define INT_MAX 0x7FFFFFFF