From 91b779e23cbaea5d9e3176f3a2c05b8ec10c89fb Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 28 Jan 2022 13:52:15 -0700 Subject: [PATCH] Avoid redefinition of HB_NO_SETLOCALE in certain configs --- src/hb-common.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-common.cc b/src/hb-common.cc index a6775f739..249a8a801 100644 --- a/src/hb-common.cc +++ b/src/hb-common.cc @@ -29,7 +29,7 @@ #include "hb.hh" #include "hb-machinery.hh" -#if !defined(HAVE_NEWLOCALE) || !defined(HAVE_USELOCALE) +#if !defined(HB_NO_SETLOCALE) && (!defined(HAVE_NEWLOCALE) || !defined(HAVE_USELOCALE)) #define HB_NO_SETLOCALE 1 #endif