From c290ba5b7d4e9e4a5f02340a22e6c9c46564906b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 31 Oct 2017 13:18:21 -0600 Subject: [PATCH] Define _GNU_SOURCE Might help with https://github.com/behdad/harfbuzz/pull/592 Ie. bringing in qsort_r() prototype always. --- src/hb-private.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-private.hh b/src/hb-private.hh index 6f2106ee2..6d54eef56 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -92,6 +92,7 @@ extern "C" void hb_free_impl(void *ptr); #endif // __cplusplus < 201103L +#define _GNU_SOURCE 1 #if (defined(__GNUC__) || defined(__clang__)) && defined(__OPTIMIZE__) #define likely(expr) (__builtin_expect (!!(expr), 1))