Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* On Windows and OSX, SQLite uses preprocessor macros to configure itself. On | |
|
smcgruer2
2015/11/20 14:46:17
To get access to __GLIBC__ and __UCLIBC__ etc, one
Scott Hess - ex-Googler
2015/11/20 18:06:05
Acknowledged.
| |
| 2 * Linux, it expects config.h from autoconf. autoconf generates config.h by | |
| 3 * compiling a series of probe programs, and Chromium's build system has no | |
| 4 * "configure" phase to put such generation in. This file is a workaround for | |
| 5 * this issue. | |
| 6 */ | |
| 7 /* TODO(shess): Expand this to OSX and Windows? */ | |
| 8 /* TODO(shess): Consider config_linux.h, config_mac.h, config_win.h? */ | |
| 9 | |
| 10 /* NOTE(shess): This file is included by sqlite3.c, be very careful about adding | |
| 11 * #include lines. | |
| 12 */ | |
| 13 /* TODO(shess): Consider using build/build_config.h for OS_ macros. */ | |
| 14 | |
| 15 /* SQLite wants to track malloc sizes. On OSX it uses malloc_size(), on | |
| 16 * Windows _msize(), elsewhere it handles it manually by enlarging the malloc | |
| 17 * and injecting a field. Enable malloc_usable_size() for Linux. | |
| 18 * | |
| 19 * malloc_usable_size() is not exported by the Android NDK. It is not | |
| 20 * implemented by uclibc. | |
| 21 */ | |
| 22 #if defined(__linux__) && !defined(__UCLIBC__) | |
| 23 #define HAVE_MALLOC_H 1 | |
| 24 #define HAVE_MALLOC_USABLE_SIZE 1 | |
| 25 #endif | |
| 26 | |
| 27 /* TODO(shess): Eat other config options from gn and gyp? */ | |
| OLD | NEW |