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:
Bjoern Breitmeyer 2015-03-27 15:42:57 +01:00 committed by Konstantin Ritt
parent 8a2645b8f0
commit 11bd02e4c2

View File

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