Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(631)

Side by Side Diff: third_party/sqlite/amalgamation/config.h

Issue 1437823005: [sql] uClibc doesn't provide malloc_usable_size(). (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment features.h Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/sqlite/BUILD.gn ('k') | third_party/sqlite/sqlite.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* On Windows and OSX, SQLite uses preprocessor macros to configure itself. On
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 /* TODO(shess): build_config.h uses unistd.h, perhaps for portability reasons,
15 * but AFAICT there are no current portability concerns here. limits.h is
16 * another alternative.
17 */
18 #include <features.h>
19
20 /* SQLite wants to track malloc sizes. On OSX it uses malloc_size(), on
21 * Windows _msize(), elsewhere it handles it manually by enlarging the malloc
22 * and injecting a field. Enable malloc_usable_size() for Linux.
23 *
24 * malloc_usable_size() is not exported by the Android NDK. It is not
25 * implemented by uclibc.
26 */
27 #if defined(__linux__) && !defined(__UCLIBC__)
28 #define HAVE_MALLOC_H 1
29 #define HAVE_MALLOC_USABLE_SIZE 1
30 #endif
31
32 /* TODO(shess): Eat other config options from gn and gyp? */
OLDNEW
« no previous file with comments | « third_party/sqlite/BUILD.gn ('k') | third_party/sqlite/sqlite.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698