Fix WEC2013 build of harfbuzz-ng
Errno is available on WEC2013 and the locale setting isn't necessary either. Change-Id: I648d03d842c17b04afdd2d89674119ce020769a4 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
This commit is contained in:
parent
8a2645b8f0
commit
11bd02e4c2
9
src/3rdparty/harfbuzz-ng/src/hb-private.hh
vendored
9
src/3rdparty/harfbuzz-ng/src/hb-private.hh
vendored
@ -121,16 +121,17 @@
|
||||
|
||||
# if defined(_WIN32_WCE)
|
||||
/* Some things not defined on Windows CE. */
|
||||
# define strdup _strdup
|
||||
# define getenv(Name) NULL
|
||||
# define setlocale(Category, Locale) "C"
|
||||
# if _WIN32_WCE < 0x800
|
||||
# define setlocale(Category, Locale) "C"
|
||||
static int errno = 0; /* Use something better? */
|
||||
# endif
|
||||
# elif defined(WINAPI_FAMILY) && (WINAPI_FAMILY==WINAPI_FAMILY_PC_APP || WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP)
|
||||
# define getenv(Name) NULL
|
||||
# endif
|
||||
# if (defined(__WIN32__) && !defined(__WINE__)) || defined(_MSC_VER)
|
||||
# if defined(_MSC_VER) && _MSC_VER < 1900
|
||||
# define snprintf _snprintf
|
||||
/* Windows CE only has _strdup, while rest of Windows has both. */
|
||||
# define strdup _strdup
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user