Add HB_NO_SETLOCALE
This commit is contained in:
parent
c4cae81a26
commit
a36ff94171
|
@ -61,6 +61,7 @@
|
||||||
#define HB_NO_LAYOUT_UNUSED
|
#define HB_NO_LAYOUT_UNUSED
|
||||||
#define HB_NO_MATH
|
#define HB_NO_MATH
|
||||||
#define HB_NO_NAME
|
#define HB_NO_NAME
|
||||||
|
#define HB_NO_SETLOCALE
|
||||||
#define HB_NO_SUBSET_LAYOUT
|
#define HB_NO_SUBSET_LAYOUT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -359,7 +359,7 @@ extern "C" int hb_memalign_impl(void **memptr, size_t alignment, size_t size);
|
||||||
# define HB_NO_GETENV
|
# define HB_NO_GETENV
|
||||||
# endif
|
# endif
|
||||||
# if _WIN32_WCE < 0x800
|
# if _WIN32_WCE < 0x800
|
||||||
# define setlocale(Category, Locale) "C"
|
# define HB_NO_SETLOCALE
|
||||||
static int errno = 0; /* Use something better? */
|
static int errno = 0; /* Use something better? */
|
||||||
# endif
|
# endif
|
||||||
# elif defined(WINAPI_FAMILY) && (WINAPI_FAMILY==WINAPI_FAMILY_PC_APP || WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP)
|
# elif defined(WINAPI_FAMILY) && (WINAPI_FAMILY==WINAPI_FAMILY_PC_APP || WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP)
|
||||||
|
@ -372,6 +372,10 @@ static int errno = 0; /* Use something better? */
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HB_NO_SETLOCALE
|
||||||
|
#define setlocale(Category, Locale) "C"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HB_NO_GETENV
|
#ifdef HB_NO_GETENV
|
||||||
#define getenv(Name) nullptr
|
#define getenv(Name) nullptr
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue