Define _GNU_SOURCE

Might help with https://github.com/behdad/harfbuzz/pull/592
Ie. bringing in qsort_r() prototype always.
This commit is contained in:
Behdad Esfahbod 2017-10-31 13:18:21 -06:00
parent 98acdde3c6
commit c290ba5b7d
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ extern "C" void hb_free_impl(void *ptr);
#endif // __cplusplus < 201103L #endif // __cplusplus < 201103L
#define _GNU_SOURCE 1
#if (defined(__GNUC__) || defined(__clang__)) && defined(__OPTIMIZE__) #if (defined(__GNUC__) || defined(__clang__)) && defined(__OPTIMIZE__)
#define likely(expr) (__builtin_expect (!!(expr), 1)) #define likely(expr) (__builtin_expect (!!(expr), 1))