aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-09-25 17:34:40 -0700
committerIan Rogers <irogers@google.com>2014-09-25 17:34:40 -0700
commit850a4cb72b9ceeec9934bb096716a6bd93887fee (patch)
treec7f31200e175ec12dbe4bb913a1e020668312ee3
parent330292480272aed3d7663ae7a7668675c742b2e0 (diff)
downloadbuild-850a4cb72b9ceeec9934bb096716a6bd93887fee.tar.gz
Test __GLIBC__ is defined before using its value.
Avoids -Wundef warning. Change-Id: I52d8223500fe31cdf7023e32e96df75e33eb2f7e
-rw-r--r--core/combo/include/arch/linux-x86/AndroidConfig.h2
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 a8d74fdc57..1f2d9ab389 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