From 9407ef8d4bb96346b1f8b07757d79d3f8cc61cf7 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Mon, 10 Jun 2019 15:17:43 +0430 Subject: [PATCH] minor, add HB_USE_INTERNAL_QSORT The only thing I need for a working wasm in a minimum libc, otherwise I have to provide the very same qsort inside that libc --- src/hb-algs.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-algs.hh b/src/hb-algs.hh index 9a9d3f430..7b727f299 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -1,6 +1,6 @@ /* * Copyright © 2017 Google, Inc. - * Copyright © 2019 Google, Inc. + * Copyright © 2019 Facebook, Inc. * * This is part of HarfBuzz, a text shaping library. * @@ -843,7 +843,7 @@ static inline void hb_qsort (void *base, size_t nel, size_t width, int (*compar)(const void *_a, const void *_b)) { -#ifdef __OPTIMIZE_SIZE__ +#if defined(__OPTIMIZE_SIZE__) && !defined(HB_USE_INTERNAL_QSORT) qsort (base, nel, width, compar); #else sort_r_simple (base, nel, width, compar);