system/corennnnn
Revisión | abb9638e3696e393d6dc45439feda91073e52103 (tree) |
---|---|
Tiempo | 2008-11-07 10:44:22 |
Autor | Alexey Tarasov <tarasov@dodo...> |
Commiter | Alexey Tarasov |
1. added macro definitions to AndroidConfig.h
2. removed unnecessary include of <alloca.h>
@@ -152,10 +152,16 @@ | ||
152 | 152 | * HAVE_LITTLE_ENDIAN -- we are little endian. |
153 | 153 | * HAVE_BIG_ENDIAN -- we are big endian. |
154 | 154 | */ |
155 | -#define HAVE_ENDIAN_H | |
155 | +/* #define HAVE_ENDIAN_H */ | |
156 | 156 | #define HAVE_LITTLE_ENDIAN |
157 | 157 | |
158 | 158 | /* |
159 | + * Define this if you have sys/endian.h | |
160 | + * NOTE: mutually exclusive with HAVE_ENDIAN_H | |
161 | + */ | |
162 | +#define HAVE_SYS_ENDIAN_H | |
163 | + | |
164 | +/* | |
159 | 165 | * We need to choose between 32-bit and 64-bit off_t. All of our code should |
160 | 166 | * agree on the same size. For desktop systems, use 64-bit values, |
161 | 167 | * because some of our libraries (e.g. wxWidgets) expect to be built that way. |
@@ -293,4 +299,19 @@ | ||
293 | 299 | */ |
294 | 300 | #define HAVE_WRITEV 1 |
295 | 301 | |
302 | +/* | |
303 | + * Define if <alloca.h> does not exist | |
304 | + * NOTE: <alloca.h> defines alloca() which | |
305 | + * on FreeBSD is defined in <stdlib.h> | |
306 | + */ | |
307 | +#define HAVE_NO_ALLOCA_H | |
308 | + | |
309 | +/* | |
310 | + * Defines CLOCK_PROCESS_CPUTIME_ID for clock_gettime() | |
311 | + * XXX: CLOCK_PROF seems to be commonly used replacement | |
312 | + */ | |
313 | +#ifndef CLOCK_PROCESS_CPUTIME_ID | |
314 | +#define CLOCK_PROCESS_CPUTIME_ID CLOCK_PROF | |
315 | +#endif | |
316 | + | |
296 | 317 | #endif /*_ANDROID_CONFIG_H*/ |
@@ -23,7 +23,6 @@ | ||
23 | 23 | #include <stdlib.h> |
24 | 24 | #include <stdint.h> |
25 | 25 | #include <string.h> |
26 | -#include <alloca.h> | |
27 | 26 | #include <assert.h> |
28 | 27 | #include <arpa/inet.h> |
29 | 28 |