diff options
author | mostynb@opera.com <mostynb@opera.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-23 12:00:10 +0000 |
---|---|---|
committer | mostynb@opera.com <mostynb@opera.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-23 12:00:10 +0000 |
commit | 292633f04eedef53b2d77cb6dde6a019a3415dbb (patch) | |
tree | a7250c1adcc7540acf8b0b50fe89dd930b186332 /build | |
parent | 8892c2408cc7cae9a75220be3421b53d034e462b (diff) | |
download | chromium_src-292633f04eedef53b2d77cb6dde6a019a3415dbb.zip chromium_src-292633f04eedef53b2d77cb6dde6a019a3415dbb.tar.gz chromium_src-292633f04eedef53b2d77cb6dde6a019a3415dbb.tar.bz2 |
add a macro that really identifies glibc
uClibc pretends to be glibc, so just checking for __GLIBC__ doesn't always
work. Rather than check for defined(__GLIBC__) && !defined(__UCLIBC__) in
multiple places, do it once and define LIBC_GLIBC if we're certain that we're
really using glibc.
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/15405003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201761 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/build_config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build/build_config.h b/build/build_config.h index ea5da2c..3ea3ddc 100644 --- a/build/build_config.h +++ b/build/build_config.h @@ -34,6 +34,10 @@ #if !defined(TOOLKIT_VIEWS) && defined(USE_X11) #define TOOLKIT_GTK #endif +#if defined(__GLIBC__) && !defined(__UCLIBC__) +// we really are using glibc, not uClibc pretending to be glibc +#define LIBC_GLIBC +#endif #elif defined(_WIN32) #define OS_WIN 1 #define TOOLKIT_VIEWS 1 |