From 850a4cb72b9ceeec9934bb096716a6bd93887fee Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Thu, 25 Sep 2014 17:34:40 -0700 Subject: [PATCH] Test __GLIBC__ is defined before using its value. Avoids -Wundef warning. Change-Id: I52d8223500fe31cdf7023e32e96df75e33eb2f7e --- core/combo/include/arch/linux-x86/AndroidConfig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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