Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 850a4cb7 authored by Ian Rogers's avatar Ian Rogers
Browse files

Test __GLIBC__ is defined before using its value.

Avoids -Wundef warning.

Change-Id: I52d8223500fe31cdf7023e32e96df75e33eb2f7e
parent 33029248
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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