Debian Codegraph @

Xpjproject/third_party/build/srtp/srtp_config.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2003-2007 Benny Prijono <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18 #ifndef __SRTP_CONFIG_H__
19 #define __SRTP_CONFIG_H__
20
21 #include <pj/types.h>
22
23 /* We'll just define CISC if it's x86 family */
24 #if defined (PJ_M_I386) || defined(_i386_) || defined(i_386_) || \
25 defined(_X86_) || defined(x86) || defined(__i386__) || \
26 defined(__i386) || defined(_M_IX86) || defined(__I86__) || \
27 defined (PJ_M_X86_64) || defined(__amd64__) || defined(__amd64) || \
28 defined(__x86_64__) || defined(__x86_64) || \
29 defined(PJ_M_IA64) || defined(__ia64__) || defined(_IA64) || \
30 defined(__IA64__) || defined(_M_IA64)
31 # define CPU_CISC 1
32 /* # define HAVE_X86 1 use X86 inlined assembly code */
33 #else
34 /*# define CPU_RISC 1*/
35 # define CPU_CISC 1
36 #endif
37
38 /* Define to compile in dynamic debugging system. */
39 #define ENABLE_DEBUGGING PJ_DEBUG
40
41 /* Define to 1 if you have the <arpa/inet.h> header file. */
42 #if defined(PJ_HAS_ARPA_INET_H) && PJ_HAS_ARPA_INET_H!=0
43 # define HAVE_ARPA_INET_H 1
44 #endif
45
46 /* Define to 1 if you have the <inttypes.h> header file. */
47 #if defined(PJ_HAS_INTTYPES_H) && PJ_HAS_INTTYPES_H!=0
48 # define HAVE_INTTYPES_H 1
49 #endif
50
51 /* Define to 1 if you have the <byteswap.h> header file. */
52 /* #undef HAVE_BYTESWAP_H */
53
54 /* Define to 1 if you have the `inet_aton' function. */
55 #if defined(PJ_SOCK_HAS_INET_PTON) && PJ_SOCK_HAS_INET_PTON
56 # define HAVE_INET_ATON 1
57 #endif
58
59
60 /* Define to 1 if you have the <netinet/in.h> header file. */
61 #if defined(PJ_HAS_NETINET_IN_H) && PJ_HAS_NETINET_IN_H!=0
62 # define HAVE_NETINET_IN_H 1
63 #endif
64
65 /* Define to 1 if you have the <stdlib.h> header file. */
66 #if defined(PJ_HAS_STDLIB_H) && PJ_HAS_STDLIB_H!=0
67 # define HAVE_STDLIB_H 1
68 #endif
69
70 /* Define to 1 if you have the <string.h> header file. */
71 #if defined(PJ_HAS_STRING_H) && PJ_HAS_STRING_H!=0
72 # define HAVE_STRING_H 1
73 #endif
74
75 /* Define to 1 if you have the <sys/socket.h> header file. */
76 #if defined(PJ_HAS_SYS_SOCKET_H) && PJ_HAS_SYS_SOCKET_H!=0
77 # define HAVE_SYS_SOCKET_H 1
78 #endif
79
80 /* Define to 1 if you have the <sys/types.h> header file. */
81 #if defined(PJ_HAS_SYS_TYPES_H) && PJ_HAS_SYS_TYPES_H!=0
82 # define HAVE_SYS_TYPES_H 1
83 #endif
84
85 /* Define to 1 if you have the <unistd.h> header file. */
86 /* Define to 1 if you have the `usleep' function. */
87 #if defined(PJ_HAS_UNISTD_H) && PJ_HAS_UNISTD_H!=0
88 # define HAVE_UNISTD_H 1
89 # define HAVE_USLEEP 1
90 #endif
91
92
93 /* Define to 1 if you have the <windows.h> header file. */
94 #if (defined(PJ_WIN32) && PJ_WIN32!=0) || (defined(PJ_WIN64) && PJ_WIN64 != 0)
95 # define HAVE_WINDOWS_H 1
96 #endif
97
98 /* Define to 1 if you have the <winsock2.h> header file. */
99 #if defined(PJ_HAS_WINSOCK2_H) && PJ_HAS_WINSOCK2_H!=0
100 # define HAVE_WINSOCK2_H 1
101 #endif
102
103 #define HAVE_INT16_T 1
104 #define HAVE_INT32_T 1
105 #define HAVE_INT8_T 1
106 #define HAVE_UINT8_T 1
107 #define HAVE_UINT16_T 1
108 #define HAVE_UINT32_T 1
109 #define HAVE_UINT64_T 1
110
111 /* Define to 1 if you have the <stdint.h> header file. */
112 #if defined(PJ_HAS_STDINT_H) && PJ_HAS_STDINT_H!=0
113 # define HAVE_STDINT_H 1
114 #else
115 typedef pj_uint8_t uint8_t;
116 typedef pj_uint16_t uint16_t;
117 typedef pj_uint32_t uint32_t;
118 typedef pj_uint64_t uint64_t;
119 typedef pj_int8_t int8_t;
120 typedef pj_int16_t int16_t;
121 typedef pj_int32_t int32_t;
122 typedef pj_int64_t int64_t;
123 #endif
124
125 /* These shouldn't really matter as long as HAVE_UINT64_T is set */
126 #define SIZEOF_UNSIGNED_LONG (sizeof(unsigned long))
127 #define SIZEOF_UNSIGNED_LONG_LONG 8
128
129
130 #if (_MSC_VER >= 1400) // VC8+
131 # ifndef _CRT_SECURE_NO_DEPRECATE
132 # define _CRT_SECURE_NO_DEPRECATE
133 # endif
134 # ifndef _CRT_NONSTDC_NO_DEPRECATE
135 # define _CRT_NONSTDC_NO_DEPRECATE
136 # endif
137 #endif // VC8+
138
139 #ifdef _MSC_VER
140 # ifndef __cplusplus
141 # define inline _inline
142 # endif
143
144 # pragma warning(disable:4311) // 'type cast': pointer truncation from 'unsigned char *' to 'unsigned long'
145 //# pragma warning(disable:4761) // integral mismatch
146 # pragma warning(disable:4018) // '<' : signed/unsigned mismatch
147 # pragma warning(disable:4244) // conversion from int64 to int
148 # pragma warning(disable:4100) // unreferenced formal parameter
149 # pragma warning(disable:4214) // bit field types other than int
150 # pragma warning(disable:4389) // '!=' : signed/unsigned mismatch
151 # pragma warning(disable:4701) // potentially uninitialized local variable used
152 # pragma warning(disable:4702) // unreachable code
153 # pragma warning(disable:4703) // potentially uninitialized local pointer variable used
154 # pragma warning(disable:4204) // nonstandard extension used : non-constant aggregate initializer
155 #endif
156
157 /* clock() */
158 #if defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE!=0
159 /* clock() causes unresolved symbol on linking */
160 # define _CLOCK_T_DEFINED
161 # define CLOCKS_PER_SEC 1000
162 # define clock_t unsigned
163
164 #include <windows.h>
165 static clock_t clock(void)
166 {
167 return GetTickCount();
168 }
169 #endif
170
171
172 /* Path to random device */
173 /* #define DEV_URANDOM "/dev/urandom" */
174
175 /* Only with PJSIP:
176 * Try to open PJ_DEV_URANDOM if present
177 */
178 #if defined(PJ_HAS_FCNTL_H) && defined(PJ_HAS_UNISTD_H)
179 # define PJ_DEV_URANDOM "/dev/urandom"
180 #endif
181
182 /* We have overridden libsrtp error mechanism, so these are not used. */
183 /* #undef ERR_REPORTING_FILE */
184 /* #undef ERR_REPORTING_STDOUT */
185 /* #undef USE_ERR_REPORTING_FILE */
186 /* #undef USE_SYSLOG */
187 /* #undef HAVE_SYSLOG_H */
188
189
190 /* Define this to use ISMAcryp code. */
191 /* #undef GENERIC_AESICM */
192
193 /* Define to 1 if you have the <inttypes.h> header file. */
194 /* #undef HAVE_INTTYPES_H */
195
196 /* Define to 1 if you have the `socket' function. */
197 /* #undef HAVE_SOCKET */
198
199 /* Define to 1 if you have the `socket' library (-lsocket). */
200 /* #undef HAVE_LIBSOCKET */
201
202 /* Define to 1 if you have the <machine/types.h> header file. */
203 /* #undef HAVE_MACHINE_TYPES_H */
204
205
206 /* Define to 1 if you have the <strings.h> header file. */
207 //#define HAVE_STRINGS_H 1
208
209 /* Define to 1 if you have the <sys/int_types.h> header file. */
210 /* #undef HAVE_SYS_INT_TYPES_H */
211
212 /* Define to use GDOI. */
213 /* #undef SRTP_GDOI */
214
215 /* Define to compile for kernel contexts. */
216 /* #undef SRTP_KERNEL */
217
218 /* Define to compile for Linux kernel context. */
219 /* #undef SRTP_KERNEL_LINUX */
220
221 /* Define to 1 if you have the ANSI C header files. */
222 //#define STDC_HEADERS 1
223
224 /* Endianness would have been set by pjlib. */
225 /* #undef WORDS_BIGENDIAN */
226
227 /* Define to empty if `const' does not conform to ANSI C. */
228 /* #undef const */
229
230 /* Define to `unsigned' if <sys/types.h> does not define. */
231 /* #undef size_t */
232
233 /* Define to the full name and version of this package. */
234 #define PACKAGE_STRING "libsrtp 2.1.0"
235
236 /* Define to the version of this package. */
237 #define PACKAGE_VERSION "2.1.0"
238
239
240 #endif /* __SRTP_CONFIG_H__ */
241