Move HB_NO_SETLOCALE to closer place to its to unbreak HB_TINY build (#1768)

This commit is contained in:
Ebrahim Byagowi 2019-06-11 01:33:30 +04:30 committed by GitHub
parent b4a5a69ad8
commit 19b8eb08e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -35,6 +35,9 @@
#include <xlocale.h>
#endif
#ifdef HB_NO_SETLOCALE
#define setlocale(Category, Locale) "C"
#endif
/**
* SECTION:hb-common

View File

@ -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