Move HB_NO_SETLOCALE to closer place to its to unbreak HB_TINY build (#1768)
authorEbrahim Byagowi <ebrahim@gnu.org>
Mon, 10 Jun 2019 21:03:30 +0000 (01:33 +0430)
committerGitHub <noreply@github.com>
Mon, 10 Jun 2019 21:03:30 +0000 (01:33 +0430)
src/hb-common.cc
src/hb.hh

index 71791db..fb6377e 100644 (file)
@@ -35,6 +35,9 @@
 #include <xlocale.h>
 #endif
 
+#ifdef HB_NO_SETLOCALE
+#define setlocale(Category, Locale) "C"
+#endif
 
 /**
  * SECTION:hb-common
index bf54770..a2baa31 100644 (file)
--- a/src/hb.hh
+++ b/src/hb.hh
@@ -372,10 +372,6 @@ static int errno = 0; /* Use something better? */
 #  endif
 #endif
 
-#ifdef HB_NO_SETLOCALE
-#define setlocale(Category, Locale) "C"
-#endif
-
 #ifdef HB_NO_GETENV
 #define getenv(Name) nullptr
 #endif