diff options
author | Ian Rogers <irogers@google.com> | 2014-09-25 17:34:40 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-09-25 17:34:40 -0700 |
commit | 850a4cb72b9ceeec9934bb096716a6bd93887fee (patch) | |
tree | c7f31200e175ec12dbe4bb913a1e020668312ee3 /core/combo/include/arch | |
parent | 330292480272aed3d7663ae7a7668675c742b2e0 (diff) | |
download | build-850a4cb72b9ceeec9934bb096716a6bd93887fee.zip build-850a4cb72b9ceeec9934bb096716a6bd93887fee.tar.gz build-850a4cb72b9ceeec9934bb096716a6bd93887fee.tar.bz2 |
Test __GLIBC__ is defined before using its value.
Avoids -Wundef warning.
Change-Id: I52d8223500fe31cdf7023e32e96df75e33eb2f7e
Diffstat (limited to 'core/combo/include/arch')
-rw-r--r-- | core/combo/include/arch/linux-x86/AndroidConfig.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/combo/include/arch/linux-x86/AndroidConfig.h b/core/combo/include/arch/linux-x86/AndroidConfig.h index a8d74fd..1f2d9ab 100644 --- a/core/combo/include/arch/linux-x86/AndroidConfig.h +++ b/core/combo/include/arch/linux-x86/AndroidConfig.h @@ -256,7 +256,7 @@ /* * Define to 1 if <stdlib.h> provides qsort_r() with a GNU style function prototype. */ -#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 8) +#if defined(__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 8)) #define HAVE_GNU_QSORT_R 1 #else #define HAVE_GNU_QSORT_R 0 |