external/bluetooth/glib
Revision | 66a6690a324ecc264dbc949b6f1c7eafbd18c7f2 (tree) |
---|---|
Zeit | 2013-10-09 17:41:29 |
Autor | Szymon Janc <szymon.janc@tiet...> |
Commiter | Szymon Janc |
Add Android build system support
Compiler warnings flags not enabled by glib upstream but enabled by\
Android build are disabled to not make extra noise while building.
@@ -20,7 +20,6 @@ TAGS | ||
20 | 20 | |
21 | 21 | # autofoo stuff here |
22 | 22 | compile |
23 | -config.* | |
24 | 23 | configure |
25 | 24 | depcomp |
26 | 25 | aclocal.m4 |
@@ -0,0 +1,747 @@ | ||
1 | +/* config.h. Generated from config.h.in by configure. */ | |
2 | +/* config.h.in. Generated from configure.ac by autoheader. */ | |
3 | + | |
4 | +/* Define if building universal (internal helper macro) */ | |
5 | +/* #undef AC_APPLE_UNIVERSAL_BUILD */ | |
6 | + | |
7 | +/* The normal alignment of `guint32', in bytes. */ | |
8 | +#define ALIGNOF_GUINT32 4 | |
9 | + | |
10 | +/* The normal alignment of `guint64', in bytes. */ | |
11 | +#define ALIGNOF_GUINT64 4 | |
12 | + | |
13 | +/* The normal alignment of `unsigned long', in bytes. */ | |
14 | +#define ALIGNOF_UNSIGNED_LONG 4 | |
15 | + | |
16 | +/* poll doesn't work on devices */ | |
17 | +/* #undef BROKEN_POLL */ | |
18 | + | |
19 | +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP | |
20 | + systems. This function is required for `alloca.c' support on those systems. | |
21 | + */ | |
22 | +/* #undef CRAY_STACKSEG_END */ | |
23 | + | |
24 | +/* Define to 1 if using `alloca.c'. */ | |
25 | +/* #undef C_ALLOCA */ | |
26 | + | |
27 | +/* Whether to disable memory pools */ | |
28 | +/* #undef DISABLE_MEM_POOLS */ | |
29 | + | |
30 | +/* Whether to enable GC friendliness by default */ | |
31 | +/* #undef ENABLE_GC_FRIENDLY_DEFAULT */ | |
32 | + | |
33 | +/* always defined to indicate that i18n is enabled */ | |
34 | +/* #define ENABLE_NLS 1 */ | |
35 | + | |
36 | +/* Define the gettext package to be used */ | |
37 | +#define GETTEXT_PACKAGE "glib20" | |
38 | + | |
39 | +/* Define to the GLIB binary age */ | |
40 | +#define GLIB_BINARY_AGE 3204 | |
41 | + | |
42 | +/* Define to the GLIB interface age */ | |
43 | +#define GLIB_INTERFACE_AGE 4 | |
44 | + | |
45 | +/* Define the location where the catalogs will be installed */ | |
46 | +#define GLIB_LOCALE_DIR "/usr/local/share/locale" | |
47 | + | |
48 | +/* Define to the GLIB major version */ | |
49 | +#define GLIB_MAJOR_VERSION 2 | |
50 | + | |
51 | +/* Define to the GLIB micro version */ | |
52 | +#define GLIB_MICRO_VERSION 4 | |
53 | + | |
54 | +/* Define to the GLIB minor version */ | |
55 | +#define GLIB_MINOR_VERSION 32 | |
56 | + | |
57 | +/* Have inline keyword */ | |
58 | +#define G_HAVE_INLINE 1 | |
59 | + | |
60 | +/* Have __inline keyword */ | |
61 | +#define G_HAVE___INLINE 1 | |
62 | + | |
63 | +/* Have __inline__ keyword */ | |
64 | +#define G_HAVE___INLINE__ 1 | |
65 | + | |
66 | +/* A 'va_copy' style function */ | |
67 | +#define G_VA_COPY va_copy | |
68 | + | |
69 | +/* 'va_lists' cannot be copies as values */ | |
70 | +/* #define G_VA_COPY_AS_ARRAY 1 */ | |
71 | + | |
72 | +/* Define to 1 if you have `alloca', as a function or macro. */ | |
73 | +#define HAVE_ALLOCA 1 | |
74 | + | |
75 | +/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). | |
76 | + */ | |
77 | +#define HAVE_ALLOCA_H 1 | |
78 | + | |
79 | +/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ | |
80 | +/*#define HAVE_ARPA_NAMESER_COMPAT_H 1 */ | |
81 | + | |
82 | +/* Define to 1 if you have the `atexit' function. */ | |
83 | +#define HAVE_ATEXIT 1 | |
84 | + | |
85 | +/* Define to 1 if you have the <attr/xattr.h> header file. */ | |
86 | +/* #undef HAVE_ATTR_XATTR_H */ | |
87 | + | |
88 | +/* Define to 1 if you have the `bind_textdomain_codeset' function. */ | |
89 | +/* #define HAVE_BIND_TEXTDOMAIN_CODESET 1 */ | |
90 | + | |
91 | +/* Define if you have a version of the snprintf function with semantics as | |
92 | + specified by the ISO C99 standard. */ | |
93 | +#define HAVE_C99_SNPRINTF 1 | |
94 | + | |
95 | +/* Define if you have a version of the vsnprintf function with semantics as | |
96 | + specified by the ISO C99 standard. */ | |
97 | +#define HAVE_C99_VSNPRINTF 1 | |
98 | + | |
99 | +/* define to 1 if Carbon is available */ | |
100 | +/* #undef HAVE_CARBON */ | |
101 | + | |
102 | +/* Define to 1 if you have the `chown' function. */ | |
103 | +#define HAVE_CHOWN 1 | |
104 | + | |
105 | +/* Define to 1 if you have the `clock_gettime' function. */ | |
106 | +#define HAVE_CLOCK_GETTIME 1 | |
107 | + | |
108 | +/* define to 1 if Cocoa is available */ | |
109 | +/* #undef HAVE_COCOA */ | |
110 | + | |
111 | +/* Have nl_langinfo (CODESET) */ | |
112 | +/* #define HAVE_CODESET 1 */ | |
113 | + | |
114 | +/* Define to 1 if you have the <crt_externs.h> header file. */ | |
115 | +/* #undef HAVE_CRT_EXTERNS_H */ | |
116 | + | |
117 | +/* Define if dbus-1 is available */ | |
118 | +#define HAVE_DBUS1 1 | |
119 | + | |
120 | +/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. | |
121 | + */ | |
122 | +#define HAVE_DIRENT_H 1 | |
123 | + | |
124 | +/* Define to 1 if you have the <dlfcn.h> header file. */ | |
125 | +#define HAVE_DLFCN_H 1 | |
126 | + | |
127 | +/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ | |
128 | +/* #undef HAVE_DOPRNT */ | |
129 | + | |
130 | +/* define for working do while(0) macros */ | |
131 | +#define HAVE_DOWHILE_MACROS 1 | |
132 | + | |
133 | +/* Define to 1 if using dtrace probes. */ | |
134 | +/* #undef HAVE_DTRACE */ | |
135 | + | |
136 | +/* Define to 1 if you have the `endmntent' function. */ | |
137 | +#define HAVE_ENDMNTENT 1 | |
138 | + | |
139 | +/* Define to 1 if you have the `endservent' function. */ | |
140 | +#define HAVE_ENDSERVENT 1 | |
141 | + | |
142 | +/* we have the eventfd(2) system call */ | |
143 | +#define HAVE_EVENTFD 1 | |
144 | + | |
145 | +/* Define if we have FAM */ | |
146 | +/* #undef HAVE_FAM */ | |
147 | + | |
148 | +/* Define to 1 if you have the <fam.h> header file. */ | |
149 | +/* #undef HAVE_FAM_H */ | |
150 | + | |
151 | +/* Define if we have FAMNoExists in fam */ | |
152 | +/* #undef HAVE_FAM_NO_EXISTS */ | |
153 | + | |
154 | +/* Define to 1 if you have the `fchmod' function. */ | |
155 | +#define HAVE_FCHMOD 1 | |
156 | + | |
157 | +/* Define to 1 if you have the `fchown' function. */ | |
158 | +#define HAVE_FCHOWN 1 | |
159 | + | |
160 | +/* Define to 1 if you have the `fdwalk' function. */ | |
161 | +/* #undef HAVE_FDWALK */ | |
162 | + | |
163 | +/* Define to 1 if you have the <float.h> header file. */ | |
164 | +#define HAVE_FLOAT_H 1 | |
165 | + | |
166 | +/* Define to 1 if you have the <fstab.h> header file. */ | |
167 | +#define HAVE_FSTAB_H 1 | |
168 | + | |
169 | +/* Define to 1 if you have the `fsync' function. */ | |
170 | +#define HAVE_FSYNC 1 | |
171 | + | |
172 | +/* we have the futex(2) system call */ | |
173 | +#undef HAVE_FUTEX | |
174 | + | |
175 | +/* Define to 1 if you have the `getcwd' function. */ | |
176 | +#define HAVE_GETCWD 1 | |
177 | + | |
178 | +/* Define to 1 if you have the `getc_unlocked' function. */ | |
179 | +#define HAVE_GETC_UNLOCKED 1 | |
180 | + | |
181 | +/* Define to 1 if you have the `getfsstat' function. */ | |
182 | +/* #undef HAVE_GETFSSTAT */ | |
183 | + | |
184 | +/* Define to 1 if you have the `getgrgid' function. */ | |
185 | +#define HAVE_GETGRGID 1 | |
186 | + | |
187 | +/* Define to 1 if you have the `getmntent_r' function. */ | |
188 | +/* #define HAVE_GETMNTENT_R 1 */ | |
189 | + | |
190 | +/* Define to 1 if you have the `getprotobyname_r' function. */ | |
191 | +#define HAVE_GETPROTOBYNAME_R 1 | |
192 | + | |
193 | +/* Define to 1 if you have the `getpwuid' function. */ | |
194 | +#define HAVE_GETPWUID 1 | |
195 | + | |
196 | +/* Define to 1 if you have the `getvfsstat' function. */ | |
197 | +/* #undef HAVE_GETVFSSTAT */ | |
198 | + | |
199 | +/* Define to 1 if you have the `gmtime_r' function. */ | |
200 | +#define HAVE_GMTIME_R 1 | |
201 | + | |
202 | +/* define to use system printf */ | |
203 | +#define HAVE_GOOD_PRINTF 1 | |
204 | + | |
205 | +/* Define to 1 if you have the <grp.h> header file. */ | |
206 | +#define HAVE_GRP_H 1 | |
207 | + | |
208 | +/* Define to 1 if you have the `if_nametoindex' function. */ | |
209 | +#define HAVE_IF_NAMETOINDEX 1 | |
210 | + | |
211 | +/* Define to 1 if you have the `inotify_init1' function. */ | |
212 | +/* #define HAVE_INOTIFY_INIT1 1 */ | |
213 | + | |
214 | +/* define to support printing 64-bit integers with format I64 */ | |
215 | +/* #undef HAVE_INT64_AND_I64 */ | |
216 | + | |
217 | +/* Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>. */ | |
218 | +#define HAVE_INTMAX_T 1 | |
219 | + | |
220 | +/* Define to 1 if you have the <inttypes.h> header file. */ | |
221 | +#define HAVE_INTTYPES_H 1 | |
222 | + | |
223 | +/* Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, and | |
224 | + declares uintmax_t. */ | |
225 | +#define HAVE_INTTYPES_H_WITH_UINTMAX 1 | |
226 | + | |
227 | +/* Define if we have struct ip_mreqn */ | |
228 | +#define HAVE_IP_MREQN /**/ | |
229 | + | |
230 | +/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */ | |
231 | +/* #define HAVE_LANGINFO_CODESET 1 */ | |
232 | + | |
233 | +/* Have nl_langinfo (_NL_CTYPE_OUTDIGITn_MB) */ | |
234 | +/* #define HAVE_LANGINFO_OUTDIGIT 1 */ | |
235 | + | |
236 | +/* Have nl_langinfo (PM_STR) */ | |
237 | +/* #define HAVE_LANGINFO_TIME 1 */ | |
238 | + | |
239 | +/* Define to 1 if you have the `lchmod' function. */ | |
240 | +/* #undef HAVE_LCHMOD */ | |
241 | + | |
242 | +/* Define to 1 if you have the `lchown' function. */ | |
243 | +#define HAVE_LCHOWN 1 | |
244 | + | |
245 | +/* Define if your <locale.h> file defines LC_MESSAGES. */ | |
246 | +#define HAVE_LC_MESSAGES 1 | |
247 | + | |
248 | +/* Define if libelf is available */ | |
249 | +#define HAVE_LIBELF 1 | |
250 | + | |
251 | +/* Define to 1 if you have the <limits.h> header file. */ | |
252 | +#define HAVE_LIMITS_H 1 | |
253 | + | |
254 | +/* Define to 1 if you have the `link' function. */ | |
255 | +#define HAVE_LINK 1 | |
256 | + | |
257 | +/* Define to 1 if you have the <linux/magic.h> header file. */ | |
258 | +#define HAVE_LINUX_MAGIC_H 1 | |
259 | + | |
260 | +/* Define to 1 if you have the <locale.h> header file. */ | |
261 | +#define HAVE_LOCALE_H 1 | |
262 | + | |
263 | +/* Define to 1 if you have the `localtime_r' function. */ | |
264 | +#define HAVE_LOCALTIME_R 1 | |
265 | + | |
266 | +/* Define if you have the 'long double' type. */ | |
267 | +#define HAVE_LONG_DOUBLE 1 | |
268 | + | |
269 | +/* Define if you have the 'long long' type. */ | |
270 | +#define HAVE_LONG_LONG 1 | |
271 | + | |
272 | +/* define if system printf can print long long */ | |
273 | +#define HAVE_LONG_LONG_FORMAT 1 | |
274 | + | |
275 | +/* Define to 1 if you have the `lstat' function. */ | |
276 | +#define HAVE_LSTAT 1 | |
277 | + | |
278 | +/* Define to 1 if you have the `memalign' function. */ | |
279 | +#define HAVE_MEMALIGN 1 | |
280 | + | |
281 | +/* Define to 1 if you have the `memmem' function. */ | |
282 | +#define HAVE_MEMMEM 1 | |
283 | + | |
284 | +/* Define to 1 if you have the `memmove' function. */ | |
285 | +#define HAVE_MEMMOVE 1 | |
286 | + | |
287 | +/* Define to 1 if you have the `mmap' function. */ | |
288 | +#define HAVE_MMAP 1 | |
289 | + | |
290 | +/* Define to 1 if you have the <mntent.h> header file. */ | |
291 | +#define HAVE_MNTENT_H 1 | |
292 | + | |
293 | +/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ | |
294 | +/* #undef HAVE_NDIR_H */ | |
295 | + | |
296 | +/* Define to 1 if you have the <netdb.h> header file. */ | |
297 | +#define HAVE_NETDB_H 1 | |
298 | + | |
299 | +/* We have AF_NETLINK sockets */ | |
300 | +#define HAVE_NETLINK 1 | |
301 | + | |
302 | +/* Define to 1 if you have the `newlocale' function. */ | |
303 | +#undef HAVE_NEWLOCALE | |
304 | + | |
305 | +/* Have non-POSIX function getgrgid_r */ | |
306 | +/* #undef HAVE_NONPOSIX_GETGRGID_R */ | |
307 | + | |
308 | +/* Have non-POSIX function getpwuid_r */ | |
309 | +/* #undef HAVE_NONPOSIX_GETPWUID_R */ | |
310 | + | |
311 | +/* Define to 1 if you have the `on_exit' function. */ | |
312 | +#define HAVE_ON_EXIT 1 | |
313 | + | |
314 | +/* Define to 1 if you have the `pipe2' function. */ | |
315 | +#define HAVE_PIPE2 1 | |
316 | + | |
317 | +/* Define to 1 if you have the `poll' function. */ | |
318 | +#define HAVE_POLL 1 | |
319 | + | |
320 | +/* Have POSIX function getgrgid_r */ | |
321 | +/*#define HAVE_POSIX_GETGRGID_R 1 */ | |
322 | + | |
323 | +/* Have POSIX function getpwuid_r */ | |
324 | +#define HAVE_POSIX_GETPWUID_R 1 | |
325 | + | |
326 | +/* Define to 1 if you have the `posix_memalign' function. */ | |
327 | +#define HAVE_POSIX_MEMALIGN 1 | |
328 | + | |
329 | +/* Define to 1 if you have the `prlimit' function. */ | |
330 | +#define HAVE_PRLIMIT 1 | |
331 | + | |
332 | +/* Have function pthread_attr_setstacksize */ | |
333 | +#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
334 | + | |
335 | +/* Have function pthread_condattr_setclock */ | |
336 | +#undef HAVE_PTHREAD_CONDATTR_SETCLOCK | |
337 | + | |
338 | +/* Define to 1 if the system has the type `ptrdiff_t'. */ | |
339 | +/* #undef HAVE_PTRDIFF_T */ | |
340 | + | |
341 | +/* Define to 1 if you have the <pwd.h> header file. */ | |
342 | +/* #define HAVE_PWD_H 1 */ | |
343 | + | |
344 | +/* Define to 1 if you have the `readlink' function. */ | |
345 | +#define HAVE_READLINK 1 | |
346 | + | |
347 | +/* Define to 1 if you have the <sched.h> header file. */ | |
348 | +#define HAVE_SCHED_H 1 | |
349 | + | |
350 | +/* Define to 1 if libselinux is available */ | |
351 | +/* #undef HAVE_SELINUX */ | |
352 | + | |
353 | +/* Define to 1 if you have the <selinux/selinux.h> header file. */ | |
354 | +/* #undef HAVE_SELINUX_SELINUX_H */ | |
355 | + | |
356 | +/* Define to 1 if you have the `setenv' function. */ | |
357 | +#define HAVE_SETENV 1 | |
358 | + | |
359 | +/* Define to 1 if you have the `setlocale' function. */ | |
360 | +#define HAVE_SETLOCALE 1 | |
361 | + | |
362 | +/* Define to 1 if you have the `setmntent' function. */ | |
363 | +#define HAVE_SETMNTENT 1 | |
364 | + | |
365 | +/* Define if you have the 'sig_atomic_t' type. */ | |
366 | +#define HAVE_SIG_ATOMIC_T 1 | |
367 | + | |
368 | +/* Define to 1 if you have the `snprintf' function. */ | |
369 | +#define HAVE_SNPRINTF 1 | |
370 | + | |
371 | +/* Define to 1 if you have the `splice' function. */ | |
372 | +/* #define HAVE_SPLICE 1 */ | |
373 | + | |
374 | +/* Define to 1 if you have the `statfs' function. */ | |
375 | +#define HAVE_STATFS 1 | |
376 | + | |
377 | +/* Define to 1 if you have the `statvfs' function. */ | |
378 | +#define HAVE_STATVFS 1 | |
379 | + | |
380 | +/* Define to 1 if you have the <stddef.h> header file. */ | |
381 | +#define HAVE_STDDEF_H 1 | |
382 | + | |
383 | +/* Define to 1 if you have the <stdint.h> header file. */ | |
384 | +#define HAVE_STDINT_H 1 | |
385 | + | |
386 | +/* Define if <stdint.h> exists, doesn't clash with <sys/types.h>, and declares | |
387 | + uintmax_t. */ | |
388 | +#define HAVE_STDINT_H_WITH_UINTMAX 1 | |
389 | + | |
390 | +/* Define to 1 if you have the <stdlib.h> header file. */ | |
391 | +#define HAVE_STDLIB_H 1 | |
392 | + | |
393 | +/* Define to 1 if you have the `stpcpy' function. */ | |
394 | +#undef HAVE_STPCPY | |
395 | + | |
396 | +/* Define to 1 if you have the `strcasecmp' function. */ | |
397 | +#define HAVE_STRCASECMP 1 | |
398 | + | |
399 | +/* Define to 1 if you have the `strerror' function. */ | |
400 | +#define HAVE_STRERROR 1 | |
401 | + | |
402 | +/* Define to 1 if you have the <string.h> header file. */ | |
403 | +#define HAVE_STRING_H 1 | |
404 | + | |
405 | +/* Have functions strlcpy and strlcat */ | |
406 | +/* #undef HAVE_STRLCPY */ | |
407 | + | |
408 | +/* Define to 1 if you have the `strncasecmp' function. */ | |
409 | +#define HAVE_STRNCASECMP 1 | |
410 | + | |
411 | +/* Define to 1 if you have the `strsignal' function. */ | |
412 | +#define HAVE_STRSIGNAL 1 | |
413 | + | |
414 | +/* Define to 1 if you have the `strtod_l' function. */ | |
415 | +/* #define HAVE_STRTOD_L 1 */ | |
416 | + | |
417 | +/* Define to 1 if you have the `strtoll_l' function. */ | |
418 | +#undef HAVE_STRTOLL_L | |
419 | + | |
420 | +/* Define to 1 if you have the `strtoull_l' function. */ | |
421 | +#undef HAVE_STRTOULL_L | |
422 | + | |
423 | +/* Define to 1 if `d_type' is a member of `struct dirent'. */ | |
424 | +#define HAVE_STRUCT_DIRENT_D_TYPE 1 | |
425 | + | |
426 | +/* Define to 1 if `f_bavail' is a member of `struct statfs'. */ | |
427 | +#define HAVE_STRUCT_STATFS_F_BAVAIL 1 | |
428 | + | |
429 | +/* Define to 1 if `f_fstypename' is a member of `struct statfs'. */ | |
430 | +/* #undef HAVE_STRUCT_STATFS_F_FSTYPENAME */ | |
431 | + | |
432 | +/* Define to 1 if `f_basetype' is a member of `struct statvfs'. */ | |
433 | +/* #undef HAVE_STRUCT_STATVFS_F_BASETYPE */ | |
434 | + | |
435 | +/* Define to 1 if `f_fstypename' is a member of `struct statvfs'. */ | |
436 | +/* #undef HAVE_STRUCT_STATVFS_F_FSTYPENAME */ | |
437 | + | |
438 | +/* Define to 1 if `st_atimensec' is a member of `struct stat'. */ | |
439 | +/* #undef HAVE_STRUCT_STAT_ST_ATIMENSEC */ | |
440 | + | |
441 | +/* Define to 1 if `st_atim.tv_nsec' is a member of `struct stat'. */ | |
442 | +/* #undef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC */ | |
443 | + | |
444 | +/* Define to 1 if `st_blksize' is a member of `struct stat'. */ | |
445 | +#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
446 | + | |
447 | +/* Define to 1 if `st_blocks' is a member of `struct stat'. */ | |
448 | +#define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
449 | + | |
450 | +/* Define to 1 if `st_ctimensec' is a member of `struct stat'. */ | |
451 | +/* #undef HAVE_STRUCT_STAT_ST_CTIMENSEC */ | |
452 | + | |
453 | +/* Define to 1 if `st_ctim.tv_nsec' is a member of `struct stat'. */ | |
454 | +/* #undef HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC */ | |
455 | + | |
456 | +/* Define to 1 if `st_mtimensec' is a member of `struct stat'. */ | |
457 | +/* #undef HAVE_STRUCT_STAT_ST_MTIMENSEC */ | |
458 | + | |
459 | +/* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ | |
460 | +/* #undef HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC */ | |
461 | + | |
462 | +/* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ | |
463 | +#define HAVE_STRUCT_TM_TM_GMTOFF 1 | |
464 | + | |
465 | +/* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ | |
466 | +/* #undef HAVE_STRUCT_TM___TM_GMTOFF */ | |
467 | + | |
468 | +/* Define to 1 if you have the `symlink' function. */ | |
469 | +#define HAVE_SYMLINK 1 | |
470 | + | |
471 | +/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. | |
472 | + */ | |
473 | +/* #undef HAVE_SYS_DIR_H */ | |
474 | + | |
475 | +/* Define to 1 if you have the <sys/inotify.h> header file. */ | |
476 | +#define HAVE_SYS_INOTIFY_H 1 | |
477 | + | |
478 | +/* Define to 1 if you have the <sys/mkdev.h> header file. */ | |
479 | +/* #undef HAVE_SYS_MKDEV_H */ | |
480 | + | |
481 | +/* Define to 1 if you have the <sys/mntctl.h> header file. */ | |
482 | +/* #undef HAVE_SYS_MNTCTL_H */ | |
483 | + | |
484 | +/* Define to 1 if you have the <sys/mnttab.h> header file. */ | |
485 | +/* #define HAVE_SYS_MNTTAB_H 1 */ | |
486 | + | |
487 | +/* Define to 1 if you have the <sys/mount.h> header file. */ | |
488 | +#define HAVE_SYS_MOUNT_H 1 | |
489 | + | |
490 | +/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. | |
491 | + */ | |
492 | +/* #undef HAVE_SYS_NDIR_H */ | |
493 | + | |
494 | +/* Define to 1 if you have the <sys/param.h> header file. */ | |
495 | +#define HAVE_SYS_PARAM_H 1 | |
496 | + | |
497 | +/* Define to 1 if you have the <sys/poll.h> header file. */ | |
498 | +#define HAVE_SYS_POLL_H 1 | |
499 | + | |
500 | +/* Define to 1 if you have the <sys/prctl.h> header file. */ | |
501 | +#define HAVE_SYS_PRCTL_H 1 | |
502 | + | |
503 | +/* Define to 1 if you have the <sys/resource.h> header file. */ | |
504 | +#define HAVE_SYS_RESOURCE_H 1 | |
505 | + | |
506 | +/* found fd_set in sys/select.h */ | |
507 | +#define HAVE_SYS_SELECT_H 1 | |
508 | + | |
509 | +/* Define to 1 if you have the <sys/statfs.h> header file. */ | |
510 | +#define HAVE_SYS_STATFS_H 1 | |
511 | + | |
512 | +/* Define to 1 if you have the <sys/statvfs.h> header file. */ | |
513 | +/* #define HAVE_SYS_STATVFS_H 1 */ | |
514 | + | |
515 | +/* Define to 1 if you have the <sys/stat.h> header file. */ | |
516 | +/* #undef HAVE_SYS_STAT_H */ | |
517 | + | |
518 | +/* Define to 1 if you have the <sys/sysctl.h> header file. */ | |
519 | +#define HAVE_SYS_SYSCTL_H 1 | |
520 | + | |
521 | +/* Define to 1 if you have the <sys/times.h> header file. */ | |
522 | +#define HAVE_SYS_TIMES_H 1 | |
523 | + | |
524 | +/* Define to 1 if you have the <sys/time.h> header file. */ | |
525 | +#define HAVE_SYS_TIME_H 1 | |
526 | + | |
527 | +/* Define to 1 if you have the <sys/types.h> header file. */ | |
528 | +#define HAVE_SYS_TYPES_H 1 | |
529 | + | |
530 | +/* Define to 1 if you have the <sys/uio.h> header file. */ | |
531 | +#define HAVE_SYS_UIO_H 1 | |
532 | + | |
533 | +/* Define to 1 if you have the <sys/vfstab.h> header file. */ | |
534 | +/* #undef HAVE_SYS_VFSTAB_H */ | |
535 | + | |
536 | +/* Define to 1 if you have the <sys/vfs.h> header file. */ | |
537 | +#define HAVE_SYS_VFS_H 1 | |
538 | + | |
539 | +/* Define to 1 if you have the <sys/vmount.h> header file. */ | |
540 | +/* #undef HAVE_SYS_VMOUNT_H */ | |
541 | + | |
542 | +/* Define to 1 if you have the <sys/wait.h> header file. */ | |
543 | +#define HAVE_SYS_WAIT_H 1 | |
544 | + | |
545 | +/* Define to 1 if you have the <sys/xattr.h> header file. */ | |
546 | +#define HAVE_SYS_XATTR_H 1 | |
547 | + | |
548 | +/* Define to 1 if you have the `timegm' function. */ | |
549 | +#define HAVE_TIMEGM 1 | |
550 | + | |
551 | +/* Define to 1 if you have the <unistd.h> header file. */ | |
552 | +#define HAVE_UNISTD_H 1 | |
553 | + | |
554 | +/* Define if your printf function family supports positional parameters as | |
555 | + specified by Unix98. */ | |
556 | +#define HAVE_UNIX98_PRINTF 1 | |
557 | + | |
558 | +/* Define to 1 if you have the `unsetenv' function. */ | |
559 | +#define HAVE_UNSETENV 1 | |
560 | + | |
561 | +/* Define to 1 if you have the `uselocale' function. */ | |
562 | +#undef HAVE_USELOCALE | |
563 | + | |
564 | +/* Define to 1 if you have the `utimes' function. */ | |
565 | +#define HAVE_UTIMES 1 | |
566 | + | |
567 | +/* Define to 1 if you have the `valloc' function. */ | |
568 | +#define HAVE_VALLOC 1 | |
569 | + | |
570 | +/* Define to 1 if you have the <values.h> header file. */ | |
571 | +#define HAVE_VALUES_H 1 | |
572 | + | |
573 | +/* Define to 1 if you have the `vasprintf' function. */ | |
574 | +#define HAVE_VASPRINTF 1 | |
575 | + | |
576 | +/* Define to 1 if you have the `vprintf' function. */ | |
577 | +#define HAVE_VPRINTF 1 | |
578 | + | |
579 | +/* Define to 1 if you have the `vsnprintf' function. */ | |
580 | +#define HAVE_VSNPRINTF 1 | |
581 | + | |
582 | +/* Define if you have the 'wchar_t' type. */ | |
583 | +#define HAVE_WCHAR_T 1 | |
584 | + | |
585 | +/* Define to 1 if you have the `wcslen' function. */ | |
586 | +#define HAVE_WCSLEN 1 | |
587 | + | |
588 | +/* Define if you have the 'wint_t' type. */ | |
589 | +#define HAVE_WINT_T 1 | |
590 | + | |
591 | +/* Have a working bcopy */ | |
592 | +/* #undef HAVE_WORKING_BCOPY */ | |
593 | + | |
594 | +/* Define to 1 if you have the <wspiapi.h> header file. */ | |
595 | +/* #undef HAVE_WSPIAPI_H */ | |
596 | + | |
597 | +/* Define to 1 if xattr is available */ | |
598 | +#define HAVE_XATTR 1 | |
599 | + | |
600 | +/* Define to 1 if xattr API uses XATTR_NOFOLLOW */ | |
601 | +/* #undef HAVE_XATTR_NOFOLLOW */ | |
602 | + | |
603 | +/* Define to 1 if you have the <xlocale.h> header file. */ | |
604 | +#undef HAVE_XLOCALE_H | |
605 | + | |
606 | +/* Define to 1 if you have the `_NSGetEnviron' function. */ | |
607 | +/* #undef HAVE__NSGETENVIRON */ | |
608 | + | |
609 | +/* Define to the sub-directory in which libtool stores uninstalled libraries. | |
610 | + */ | |
611 | +#define LT_OBJDIR ".libs/" | |
612 | + | |
613 | +/* Do we cache iconv descriptors */ | |
614 | +/* #undef NEED_ICONV_CACHE */ | |
615 | + | |
616 | +/* didn't find fd_set */ | |
617 | +/* #undef NO_FD_SET */ | |
618 | + | |
619 | +/* Define to 1 if your C compiler doesn't accept -c and -o together. */ | |
620 | +/* #undef NO_MINUS_C_MINUS_O */ | |
621 | + | |
622 | +/* Define to the address where bug reports for this package should be sent. */ | |
623 | +#define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=glib" | |
624 | + | |
625 | +/* Define to the full name of this package. */ | |
626 | +#define PACKAGE_NAME "glib" | |
627 | + | |
628 | +/* Define to the full name and version of this package. */ | |
629 | +#define PACKAGE_STRING "glib 2.32.4" | |
630 | + | |
631 | +/* Define to the one symbol short name of this package. */ | |
632 | +#define PACKAGE_TARNAME "glib" | |
633 | + | |
634 | +/* Define to the home page for this package. */ | |
635 | +#define PACKAGE_URL "" | |
636 | + | |
637 | +/* Define to the version of this package. */ | |
638 | +#define PACKAGE_VERSION "2.32.4" | |
639 | + | |
640 | +/* define if posix_memalign() can allocate any size */ | |
641 | +#define POSIX_MEMALIGN_WITH_COMPLIANT_ALLOCS 1 | |
642 | + | |
643 | +/* whether realloc (NULL,) works */ | |
644 | +#define REALLOC_0_WORKS 1 | |
645 | + | |
646 | +/* Define if you have correct malloc prototypes */ | |
647 | +/* #undef SANE_MALLOC_PROTOS */ | |
648 | + | |
649 | +/* The size of `char', as computed by sizeof. */ | |
650 | +#define SIZEOF_CHAR 1 | |
651 | + | |
652 | +/* The size of `int', as computed by sizeof. */ | |
653 | +#define SIZEOF_INT 4 | |
654 | + | |
655 | +/* The size of `long', as computed by sizeof. */ | |
656 | +#define SIZEOF_LONG 4 | |
657 | + | |
658 | +/* The size of `long long', as computed by sizeof. */ | |
659 | +#define SIZEOF_LONG_LONG 8 | |
660 | + | |
661 | +/* The size of `short', as computed by sizeof. */ | |
662 | +#define SIZEOF_SHORT 2 | |
663 | + | |
664 | +/* The size of `size_t', as computed by sizeof. */ | |
665 | +#define SIZEOF_SIZE_T 4 | |
666 | + | |
667 | +/* The size of `void *', as computed by sizeof. */ | |
668 | +#define SIZEOF_VOID_P 4 | |
669 | + | |
670 | +/* The size of `__int64', as computed by sizeof. */ | |
671 | +#define SIZEOF___INT64 0 | |
672 | + | |
673 | +/* If using the C implementation of alloca, define if you know the | |
674 | + direction of stack growth for your system; otherwise it will be | |
675 | + automatically deduced at runtime. | |
676 | + STACK_DIRECTION > 0 => grows toward higher addresses | |
677 | + STACK_DIRECTION < 0 => grows toward lower addresses | |
678 | + STACK_DIRECTION = 0 => direction of growth unknown */ | |
679 | +/* #undef STACK_DIRECTION */ | |
680 | + | |
681 | +/* Number of arguments to statfs() */ | |
682 | +#define STATFS_ARGS 2 | |
683 | + | |
684 | +/* Define to 1 if you have the ANSI C header files. */ | |
685 | +/* #undef STDC_HEADERS */ | |
686 | + | |
687 | +/* Using GNU libiconv */ | |
688 | +#undef USE_LIBICONV_GNU | |
689 | + | |
690 | +/* Using a native implementation of iconv in a separate library */ | |
691 | +/* #undef USE_LIBICONV_NATIVE */ | |
692 | + | |
693 | +/* Define to use statfs() */ | |
694 | +#define USE_STATFS 1 | |
695 | + | |
696 | +/* Define to use statvfs() */ | |
697 | +/* #undef USE_STATVFS */ | |
698 | + | |
699 | +/* using the system-supplied PCRE library */ | |
700 | +/* #undef USE_SYSTEM_PCRE */ | |
701 | + | |
702 | +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most | |
703 | + significant byte first (like Motorola and SPARC, unlike Intel). */ | |
704 | +#if defined AC_APPLE_UNIVERSAL_BUILD | |
705 | +# if defined __BIG_ENDIAN__ | |
706 | +# define WORDS_BIGENDIAN 1 | |
707 | +# endif | |
708 | +#else | |
709 | +# ifndef WORDS_BIGENDIAN | |
710 | +/* # undef WORDS_BIGENDIAN */ | |
711 | +# endif | |
712 | +#endif | |
713 | + | |
714 | +/* Enable large inode numbers on Mac OS X 10.5. */ | |
715 | +#ifndef _DARWIN_USE_64_BIT_INODE | |
716 | +# define _DARWIN_USE_64_BIT_INODE 1 | |
717 | +#endif | |
718 | + | |
719 | +/* Number of bits in a file offset, on hosts where this is settable. */ | |
720 | +#define _FILE_OFFSET_BITS 64 | |
721 | + | |
722 | +/* Make all glibc extensions visible */ | |
723 | +#define _GNU_SOURCE 1 | |
724 | + | |
725 | +/* Define for large files, on AIX-style hosts. */ | |
726 | +/* #undef _LARGE_FILES */ | |
727 | + | |
728 | +/* Needed to get declarations for msg_control and msg_controllen on Solaris */ | |
729 | +/* #undef _XOPEN_SOURCE */ | |
730 | + | |
731 | +/* Needed to get declarations for msg_control and msg_controllen on Solaris */ | |
732 | +/* #undef _XOPEN_SOURCE_EXTENDED */ | |
733 | + | |
734 | +/* Needed to get declarations for msg_control and msg_controllen on Solaris */ | |
735 | +/* #undef __EXTENSIONS__ */ | |
736 | + | |
737 | +/* Define to empty if `const' does not conform to ANSI C. */ | |
738 | +/* #undef const */ | |
739 | + | |
740 | +/* Define to long or long long if <inttypes.h> and <stdint.h> don't define. */ | |
741 | +/* #undef intmax_t */ | |
742 | + | |
743 | +/* Define to empty if the C compiler doesn't support this keyword. */ | |
744 | +/* #undef signed */ | |
745 | + | |
746 | +/* Define to `unsigned int' if <sys/types.h> does not define. */ | |
747 | +/* #undef size_t */ |
@@ -0,0 +1,93 @@ | ||
1 | +LOCAL_PATH:= $(call my-dir) | |
2 | +include $(CLEAR_VARS) | |
3 | + | |
4 | +LOCAL_SRC_FILES:= \ | |
5 | + garray.c \ | |
6 | + gasyncqueue.c \ | |
7 | + gatomic.c \ | |
8 | + gbitlock.c \ | |
9 | + gbytes.c \ | |
10 | + gcharset.c \ | |
11 | + gchecksum.c \ | |
12 | + gconvert.c \ | |
13 | + gdataset.c \ | |
14 | + gdate.c \ | |
15 | + gdatetime.c \ | |
16 | + gdir.c \ | |
17 | + genviron.c \ | |
18 | + gerror.c \ | |
19 | + gfileutils.c \ | |
20 | + ggettext.c \ | |
21 | + ghash.c \ | |
22 | + ghook.c \ | |
23 | + ghostutils.c \ | |
24 | + giochannel.c \ | |
25 | + giounix.c \ | |
26 | + gkeyfile.c \ | |
27 | + glib-init.c \ | |
28 | + glib-private.c \ | |
29 | + glib-unix.c \ | |
30 | + glist.c \ | |
31 | + gmain.c \ | |
32 | + gmappedfile.c \ | |
33 | + gmarkup.c \ | |
34 | + gmem.c \ | |
35 | + gmessages.c \ | |
36 | + goption.c \ | |
37 | + gpattern.c \ | |
38 | + gpoll.c \ | |
39 | + gprintf.c \ | |
40 | + gqsort.c \ | |
41 | + gqueue.c \ | |
42 | + grand.c \ | |
43 | + gscanner.c \ | |
44 | + gshell.c \ | |
45 | + gslice.c \ | |
46 | + gslist.c \ | |
47 | + gspawn.c \ | |
48 | + gstdio.c \ | |
49 | + gstrfuncs.c \ | |
50 | + gstring.c \ | |
51 | + gtestutils.c \ | |
52 | + gthread.c \ | |
53 | + gthreadpool.c \ | |
54 | + gthread-posix.c \ | |
55 | + gtimer.c \ | |
56 | + gtimezone.c \ | |
57 | + gtree.c \ | |
58 | + gunicollate.c \ | |
59 | + gunidecomp.c \ | |
60 | + guniprop.c \ | |
61 | + gurifuncs.c \ | |
62 | + gutf8.c \ | |
63 | + gutils.c \ | |
64 | + gvariant.c \ | |
65 | + gvariant-core.c \ | |
66 | + gvariant-parser.c \ | |
67 | + gvariant-serialiser.c \ | |
68 | + gvarianttype.c \ | |
69 | + gvarianttypeinfo.c \ | |
70 | + gwakeup.c \ | |
71 | + libcharset/localcharset.c \ | |
72 | + | |
73 | +LOCAL_C_INCLUDES:= \ | |
74 | + $(LOCAL_PATH)/../ \ | |
75 | + $(LOCAL_PATH) | |
76 | + | |
77 | +LOCAL_CFLAGS:= \ | |
78 | + -Os \ | |
79 | + -Wno-sign-compare \ | |
80 | + -Wno-missing-field-initializers \ | |
81 | + -Wno-unused-parameter \ | |
82 | + -Wno-type-limits \ | |
83 | + -Wno-empty-body \ | |
84 | + -DGLIB_COMPILATION \ | |
85 | + -DG_DISABLE_DEPRECATED \ | |
86 | + -DLIBDIR=\".\" | |
87 | + | |
88 | +LOCAL_SHARED_LIBRARIES := \ | |
89 | + liblog | |
90 | + | |
91 | +LOCAL_MODULE := libglib | |
92 | + | |
93 | +include $(BUILD_SHARED_LIBRARY) |
@@ -23,9 +23,11 @@ | ||
23 | 23 | #include "config.h" |
24 | 24 | #include "glibconfig.h" |
25 | 25 | |
26 | +#ifndef __BIONIC__ | |
26 | 27 | #ifndef G_OS_WIN32 |
27 | 28 | #include <iconv.h> |
28 | 29 | #endif |
30 | +#endif | |
29 | 31 | #include <errno.h> |
30 | 32 | #include <stdio.h> |
31 | 33 | #include <string.h> |
@@ -200,6 +202,7 @@ g_convert_error_quark (void) | ||
200 | 202 | return g_quark_from_static_string ("g_convert_error"); |
201 | 203 | } |
202 | 204 | |
205 | +#ifndef __BIONIC__ | |
203 | 206 | static gboolean |
204 | 207 | try_conversion (const char *to_codeset, |
205 | 208 | const char *from_codeset, |
@@ -232,6 +235,7 @@ try_to_aliases (const char **to_aliases, | ||
232 | 235 | |
233 | 236 | return FALSE; |
234 | 237 | } |
238 | +#endif | |
235 | 239 | |
236 | 240 | G_GNUC_INTERNAL extern const char ** |
237 | 241 | _g_charset_get_aliases (const char *canonical_name); |
@@ -255,6 +259,7 @@ GIConv | ||
255 | 259 | g_iconv_open (const gchar *to_codeset, |
256 | 260 | const gchar *from_codeset) |
257 | 261 | { |
262 | +#ifndef __BIONIC__ | |
258 | 263 | iconv_t cd; |
259 | 264 | |
260 | 265 | if (!try_conversion (to_codeset, from_codeset, &cd)) |
@@ -283,6 +288,9 @@ g_iconv_open (const gchar *to_codeset, | ||
283 | 288 | |
284 | 289 | out: |
285 | 290 | return (cd == (iconv_t)-1) ? (GIConv)-1 : (GIConv)cd; |
291 | +#else | |
292 | + return (GIConv)-1; | |
293 | +#endif | |
286 | 294 | } |
287 | 295 | |
288 | 296 | /** |
@@ -309,9 +317,13 @@ g_iconv (GIConv converter, | ||
309 | 317 | gchar **outbuf, |
310 | 318 | gsize *outbytes_left) |
311 | 319 | { |
320 | +#ifndef __BIONIC__ | |
312 | 321 | iconv_t cd = (iconv_t)converter; |
313 | 322 | |
314 | 323 | return iconv (cd, inbuf, inbytes_left, outbuf, outbytes_left); |
324 | +#else | |
325 | + return -1; | |
326 | +#endif | |
315 | 327 | } |
316 | 328 | |
317 | 329 | /** |
@@ -332,13 +344,18 @@ g_iconv (GIConv converter, | ||
332 | 344 | gint |
333 | 345 | g_iconv_close (GIConv converter) |
334 | 346 | { |
347 | +#ifndef __BIONIC__ | |
335 | 348 | iconv_t cd = (iconv_t)converter; |
336 | 349 | |
337 | 350 | return iconv_close (cd); |
351 | +#else | |
352 | + return -1; | |
353 | +#endif | |
338 | 354 | } |
339 | 355 | |
340 | 356 | |
341 | 357 | #ifdef NEED_ICONV_CACHE |
358 | +#ifndef __BIONIC__ | |
342 | 359 | |
343 | 360 | #define ICONV_CACHE_SIZE (16) |
344 | 361 |
@@ -625,6 +642,7 @@ close_converter (GIConv converter) | ||
625 | 642 | return 0; |
626 | 643 | } |
627 | 644 | |
645 | +#endif | |
628 | 646 | #else /* !NEED_ICONV_CACHE */ |
629 | 647 | |
630 | 648 | static GIConv |
@@ -40,7 +40,9 @@ | ||
40 | 40 | |
41 | 41 | #include <string.h> |
42 | 42 | #include <locale.h> |
43 | +#ifndef __BIONIC__ | |
43 | 44 | #include <libintl.h> |
45 | +#endif | |
44 | 46 | |
45 | 47 | #ifdef G_OS_WIN32 |
46 | 48 |
@@ -104,8 +106,10 @@ ensure_gettext_initialized (void) | ||
104 | 106 | bindtextdomain (GETTEXT_PACKAGE, tmp); |
105 | 107 | g_free (tmp); |
106 | 108 | #else |
109 | +#ifndef __BIONIC__ | |
107 | 110 | bindtextdomain (GETTEXT_PACKAGE, GLIB_LOCALE_DIR); |
108 | 111 | #endif |
112 | +#endif | |
109 | 113 | # ifdef HAVE_BIND_TEXTDOMAIN_CODESET |
110 | 114 | bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); |
111 | 115 | # endif |
@@ -302,6 +306,7 @@ g_dpgettext2 (const gchar *domain, | ||
302 | 306 | static gboolean |
303 | 307 | _g_dgettext_should_translate (void) |
304 | 308 | { |
309 | +#ifndef __BIONIC__ | |
305 | 310 | static gsize translate = 0; |
306 | 311 | enum { |
307 | 312 | SHOULD_TRANSLATE = 1, |
@@ -346,6 +351,9 @@ _g_dgettext_should_translate (void) | ||
346 | 351 | } |
347 | 352 | |
348 | 353 | return translate == SHOULD_TRANSLATE; |
354 | +#else | |
355 | + return FALSE; | |
356 | +#endif | |
349 | 357 | } |
350 | 358 | |
351 | 359 | /** |
@@ -396,7 +404,11 @@ g_dgettext (const gchar *domain, | ||
396 | 404 | if (domain && G_UNLIKELY (!_g_dgettext_should_translate ())) |
397 | 405 | return msgid; |
398 | 406 | |
407 | +#ifndef __BIONIC__ | |
399 | 408 | return dgettext (domain, msgid); |
409 | +#else | |
410 | + return msgid; | |
411 | +#endif | |
400 | 412 | } |
401 | 413 | |
402 | 414 | /** |
@@ -423,7 +435,11 @@ g_dcgettext (const gchar *domain, | ||
423 | 435 | if (domain && G_UNLIKELY (!_g_dgettext_should_translate ())) |
424 | 436 | return msgid; |
425 | 437 | |
438 | +#ifndef __BIONIC__ | |
426 | 439 | return dcgettext (domain, msgid, category); |
440 | +#else | |
441 | + return msgid; | |
442 | +#endif | |
427 | 443 | } |
428 | 444 | |
429 | 445 | /** |
@@ -454,7 +470,11 @@ g_dngettext (const gchar *domain, | ||
454 | 470 | if (domain && G_UNLIKELY (!_g_dgettext_should_translate ())) |
455 | 471 | return n == 1 ? msgid : msgid_plural; |
456 | 472 | |
473 | +#ifndef __BIONIC__ | |
457 | 474 | return dngettext (domain, msgid, msgid_plural, n); |
475 | +#else | |
476 | + return msgid; | |
477 | +#endif | |
458 | 478 | } |
459 | 479 | |
460 | 480 |
@@ -73,6 +73,10 @@ | ||
73 | 73 | #include "gstrfuncs.h" |
74 | 74 | #include "gstring.h" |
75 | 75 | |
76 | +#ifdef __BIONIC__ | |
77 | +#include <android/log.h> | |
78 | +#endif | |
79 | + | |
76 | 80 | #ifdef G_OS_WIN32 |
77 | 81 | #include <process.h> /* For getpid() */ |
78 | 82 | #include <io.h> |
@@ -872,6 +876,7 @@ strdup_convert (const gchar *string, | ||
872 | 876 | } |
873 | 877 | else |
874 | 878 | { |
879 | +#ifndef __BIONIC__ | |
875 | 880 | GError *err = NULL; |
876 | 881 | |
877 | 882 | gchar *result = g_convert_with_fallback (string, -1, charset, "UTF-8", "?", NULL, NULL, &err); |
@@ -891,6 +896,9 @@ strdup_convert (const gchar *string, | ||
891 | 896 | |
892 | 897 | return g_strdup (string); |
893 | 898 | } |
899 | +#else | |
900 | + return g_strdup (string); | |
901 | +#endif | |
894 | 902 | } |
895 | 903 | } |
896 | 904 |
@@ -1194,6 +1202,7 @@ g_log_default_handler (const gchar *log_domain, | ||
1194 | 1202 | return; |
1195 | 1203 | |
1196 | 1204 | emit: |
1205 | +#ifndef __BIONIC__ | |
1197 | 1206 | /* we can be called externally with recursion for whatever reason */ |
1198 | 1207 | if (log_level & G_LOG_FLAG_RECURSION) |
1199 | 1208 | { |
@@ -1254,6 +1263,9 @@ g_log_default_handler (const gchar *log_domain, | ||
1254 | 1263 | |
1255 | 1264 | write_string (fd, string); |
1256 | 1265 | g_free (string); |
1266 | +#else | |
1267 | + __android_log_write(ANDROID_LOG_WARN, log_domain, message); | |
1268 | +#endif | |
1257 | 1269 | } |
1258 | 1270 | |
1259 | 1271 | /** |
@@ -695,7 +695,9 @@ g_ascii_strtod (const gchar *nptr, | ||
695 | 695 | |
696 | 696 | gchar *fail_pos; |
697 | 697 | gdouble val; |
698 | +#ifndef __BIONIC__ | |
698 | 699 | struct lconv *locale_data; |
700 | +#endif | |
699 | 701 | const char *decimal_point; |
700 | 702 | int decimal_point_len; |
701 | 703 | const char *p, *decimal_point_pos; |
@@ -706,8 +708,12 @@ g_ascii_strtod (const gchar *nptr, | ||
706 | 708 | |
707 | 709 | fail_pos = NULL; |
708 | 710 | |
711 | +#ifndef __BIONIC__ | |
709 | 712 | locale_data = localeconv (); |
710 | 713 | decimal_point = locale_data->decimal_point; |
714 | +#else | |
715 | + decimal_point = "."; | |
716 | +#endif | |
711 | 717 | decimal_point_len = strlen (decimal_point); |
712 | 718 | |
713 | 719 | g_assert (decimal_point_len != 0); |
@@ -899,7 +905,9 @@ g_ascii_formatd (gchar *buffer, | ||
899 | 905 | |
900 | 906 | return buffer; |
901 | 907 | #else |
908 | +#ifndef __BIONIC__ | |
902 | 909 | struct lconv *locale_data; |
910 | +#endif | |
903 | 911 | const char *decimal_point; |
904 | 912 | int decimal_point_len; |
905 | 913 | gchar *p; |
@@ -930,8 +938,12 @@ g_ascii_formatd (gchar *buffer, | ||
930 | 938 | |
931 | 939 | _g_snprintf (buffer, buf_len, format, d); |
932 | 940 | |
941 | +#ifndef __BIONIC__ | |
933 | 942 | locale_data = localeconv (); |
934 | 943 | decimal_point = locale_data->decimal_point; |
944 | +#else | |
945 | + decimal_point = "."; | |
946 | +#endif | |
935 | 947 | decimal_point_len = strlen (decimal_point); |
936 | 948 | |
937 | 949 | g_assert (decimal_point_len != 0); |
@@ -254,6 +254,7 @@ g_memmove (gpointer dest, | ||
254 | 254 | * |
255 | 255 | * Deprecated:2.32: It is best to avoid g_atexit(). |
256 | 256 | */ |
257 | +#ifndef G_DISABLE_DEPRECATED | |
257 | 258 | void |
258 | 259 | g_atexit (GVoidFunc func) |
259 | 260 | { |
@@ -288,6 +289,7 @@ g_atexit (GVoidFunc func) | ||
288 | 289 | if (error) |
289 | 290 | g_error ("Could not register atexit() function: %s", error); |
290 | 291 | } |
292 | +#endif | |
291 | 293 | |
292 | 294 | /* Based on execvp() from GNU Libc. |
293 | 295 | * Some of this code is cut-and-pasted into gspawn.c |
@@ -0,0 +1,207 @@ | ||
1 | +/* glibconfig.h | |
2 | + * | |
3 | + * This is a generated file. Please modify 'configure.ac' | |
4 | + */ | |
5 | + | |
6 | +#ifndef __GLIBCONFIG_H__ | |
7 | +#define __GLIBCONFIG_H__ | |
8 | + | |
9 | +#include <glib/gmacros.h> | |
10 | + | |
11 | +#include <limits.h> | |
12 | +#include <float.h> | |
13 | +#define GLIB_HAVE_ALLOCA_H | |
14 | +#define GLIB_HAVE_SYS_POLL_H | |
15 | + | |
16 | +/* Specifies that GLib's g_print*() functions wrap the | |
17 | + * system printf functions. This is useful to know, for example, | |
18 | + * when using glibc's register_printf_function(). | |
19 | + */ | |
20 | +#define GLIB_USING_SYSTEM_PRINTF | |
21 | + | |
22 | +G_BEGIN_DECLS | |
23 | + | |
24 | +#define G_MINFLOAT FLT_MIN | |
25 | +#define G_MAXFLOAT FLT_MAX | |
26 | +#define G_MINDOUBLE DBL_MIN | |
27 | +#define G_MAXDOUBLE DBL_MAX | |
28 | +#define G_MINSHORT SHRT_MIN | |
29 | +#define G_MAXSHORT SHRT_MAX | |
30 | +#define G_MAXUSHORT USHRT_MAX | |
31 | +#define G_MININT INT_MIN | |
32 | +#define G_MAXINT INT_MAX | |
33 | +#define G_MAXUINT UINT_MAX | |
34 | +#define G_MINLONG LONG_MIN | |
35 | +#define G_MAXLONG LONG_MAX | |
36 | +#define G_MAXULONG ULONG_MAX | |
37 | + | |
38 | +typedef signed char gint8; | |
39 | +typedef unsigned char guint8; | |
40 | +typedef signed short gint16; | |
41 | +typedef unsigned short guint16; | |
42 | +#define G_GINT16_MODIFIER "h" | |
43 | +#define G_GINT16_FORMAT "hi" | |
44 | +#define G_GUINT16_FORMAT "hu" | |
45 | +typedef signed int gint32; | |
46 | +typedef unsigned int guint32; | |
47 | +#define G_GINT32_MODIFIER "" | |
48 | +#define G_GINT32_FORMAT "i" | |
49 | +#define G_GUINT32_FORMAT "u" | |
50 | +#define G_HAVE_GINT64 1 /* deprecated, always true */ | |
51 | + | |
52 | +G_GNUC_EXTENSION typedef signed long long gint64; | |
53 | +G_GNUC_EXTENSION typedef unsigned long long guint64; | |
54 | + | |
55 | +#define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL)) | |
56 | +#define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL)) | |
57 | +#define G_GINT64_MODIFIER "ll" | |
58 | +#define G_GINT64_FORMAT "lli" | |
59 | +#define G_GUINT64_FORMAT "llu" | |
60 | + | |
61 | +#define GLIB_SIZEOF_VOID_P 4 | |
62 | +#define GLIB_SIZEOF_LONG 4 | |
63 | +#define GLIB_SIZEOF_SIZE_T 4 | |
64 | + | |
65 | +typedef signed int gssize; | |
66 | +typedef unsigned int gsize; | |
67 | +#define G_GSIZE_MODIFIER "" | |
68 | +#define G_GSSIZE_FORMAT "i" | |
69 | +#define G_GSIZE_FORMAT "u" | |
70 | + | |
71 | +#define G_MAXSIZE G_MAXUINT | |
72 | +#define G_MINSSIZE G_MININT | |
73 | +#define G_MAXSSIZE G_MAXINT | |
74 | + | |
75 | +typedef gint64 goffset; | |
76 | +#define G_MINOFFSET G_MININT64 | |
77 | +#define G_MAXOFFSET G_MAXINT64 | |
78 | + | |
79 | +#define G_GOFFSET_MODIFIER G_GINT64_MODIFIER | |
80 | +#define G_GOFFSET_FORMAT G_GINT64_FORMAT | |
81 | +#define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val) | |
82 | + | |
83 | + | |
84 | +#define GPOINTER_TO_INT(p) ((gint) (gint) (p)) | |
85 | +#define GPOINTER_TO_UINT(p) ((guint) (guint) (p)) | |
86 | + | |
87 | +#define GINT_TO_POINTER(i) ((gpointer) (gint) (i)) | |
88 | +#define GUINT_TO_POINTER(u) ((gpointer) (guint) (u)) | |
89 | + | |
90 | +typedef signed int gintptr; | |
91 | +typedef unsigned int guintptr; | |
92 | + | |
93 | +#define G_GINTPTR_MODIFIER "" | |
94 | +#define G_GINTPTR_FORMAT "i" | |
95 | +#define G_GUINTPTR_FORMAT "u" | |
96 | + | |
97 | +#ifdef NeXT /* @#%@! NeXTStep */ | |
98 | +# define g_ATEXIT(proc) (!atexit (proc)) | |
99 | +#else | |
100 | +# define g_ATEXIT(proc) (atexit (proc)) | |
101 | +#endif | |
102 | + | |
103 | +#define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END | |
104 | + | |
105 | +#define GLIB_MAJOR_VERSION 2 | |
106 | +#define GLIB_MINOR_VERSION 32 | |
107 | +#define GLIB_MICRO_VERSION 4 | |
108 | + | |
109 | +#define G_OS_UNIX | |
110 | + | |
111 | + | |
112 | +#define G_VA_COPY va_copy | |
113 | + | |
114 | +#ifdef __cplusplus | |
115 | +#define G_HAVE_INLINE 1 | |
116 | +#else /* !__cplusplus */ | |
117 | +#define G_HAVE_INLINE 1 | |
118 | +#define G_HAVE___INLINE 1 | |
119 | +#define G_HAVE___INLINE__ 1 | |
120 | +#endif /* !__cplusplus */ | |
121 | + | |
122 | +#ifdef __cplusplus | |
123 | +#define G_CAN_INLINE 1 | |
124 | +#else /* !__cplusplus */ | |
125 | +#define G_CAN_INLINE 1 | |
126 | +#endif | |
127 | + | |
128 | +#ifndef __cplusplus | |
129 | +# define G_HAVE_ISO_VARARGS 1 | |
130 | +#endif | |
131 | +#ifdef __cplusplus | |
132 | +# define G_HAVE_ISO_VARARGS 1 | |
133 | +#endif | |
134 | + | |
135 | +/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi | |
136 | + * is passed ISO vararg support is turned off, and there is no work | |
137 | + * around to turn it on, so we unconditionally turn it off. | |
138 | + */ | |
139 | +#if __GNUC__ == 2 && __GNUC_MINOR__ == 95 | |
140 | +# undef G_HAVE_ISO_VARARGS | |
141 | +#endif | |
142 | + | |
143 | +#define G_HAVE_GNUC_VARARGS 1 | |
144 | +#define G_HAVE_GROWING_STACK 1 | |
145 | + | |
146 | +#define G_HAVE_GNUC_VISIBILITY 1 | |
147 | +#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590) | |
148 | +#define G_GNUC_INTERNAL __attribute__((visibility("hidden"))) | |
149 | +#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) | |
150 | +#define G_GNUC_INTERNAL __hidden | |
151 | +#elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY) | |
152 | +#define G_GNUC_INTERNAL __attribute__((visibility("hidden"))) | |
153 | +#else | |
154 | +#define G_GNUC_INTERNAL | |
155 | +#endif | |
156 | + | |
157 | +#define G_THREADS_ENABLED | |
158 | +#define G_THREADS_IMPL_POSIX | |
159 | + | |
160 | +#define GINT16_TO_LE(val) ((gint16) (val)) | |
161 | +#define GUINT16_TO_LE(val) ((guint16) (val)) | |
162 | +#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val)) | |
163 | +#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val)) | |
164 | +#define GINT32_TO_LE(val) ((gint32) (val)) | |
165 | +#define GUINT32_TO_LE(val) ((guint32) (val)) | |
166 | +#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val)) | |
167 | +#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val)) | |
168 | +#define GINT64_TO_LE(val) ((gint64) (val)) | |
169 | +#define GUINT64_TO_LE(val) ((guint64) (val)) | |
170 | +#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val)) | |
171 | +#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val)) | |
172 | +#define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val)) | |
173 | +#define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val)) | |
174 | +#define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val)) | |
175 | +#define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val)) | |
176 | +#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val)) | |
177 | +#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val)) | |
178 | +#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val)) | |
179 | +#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val)) | |
180 | +#define GSIZE_TO_LE(val) ((gsize) GUINT32_TO_LE (val)) | |
181 | +#define GSSIZE_TO_LE(val) ((gssize) GINT32_TO_LE (val)) | |
182 | +#define GSIZE_TO_BE(val) ((gsize) GUINT32_TO_BE (val)) | |
183 | +#define GSSIZE_TO_BE(val) ((gssize) GINT32_TO_BE (val)) | |
184 | +#define G_BYTE_ORDER G_LITTLE_ENDIAN | |
185 | + | |
186 | +#define GLIB_SYSDEF_POLLIN =1 | |
187 | +#define GLIB_SYSDEF_POLLOUT =4 | |
188 | +#define GLIB_SYSDEF_POLLPRI =2 | |
189 | +#define GLIB_SYSDEF_POLLHUP =16 | |
190 | +#define GLIB_SYSDEF_POLLERR =8 | |
191 | +#define GLIB_SYSDEF_POLLNVAL =32 | |
192 | + | |
193 | +#define G_MODULE_SUFFIX "so" | |
194 | + | |
195 | +typedef int GPid; | |
196 | + | |
197 | +#define GLIB_SYSDEF_AF_UNIX 1 | |
198 | +#define GLIB_SYSDEF_AF_INET 2 | |
199 | +#define GLIB_SYSDEF_AF_INET6 10 | |
200 | + | |
201 | +#define GLIB_SYSDEF_MSG_OOB 1 | |
202 | +#define GLIB_SYSDEF_MSG_PEEK 2 | |
203 | +#define GLIB_SYSDEF_MSG_DONTROUTE 4 | |
204 | + | |
205 | +G_END_DECLS | |
206 | + | |
207 | +#endif /* __GLIBCONFIG_H__ */ |