From 855a5d7cb8f585bf66dd18cb480b8c3feef62480 Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Fri, 10 Apr 2015 17:18:01 +0400 Subject: [PATCH] Fix build on WEC2013 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on patch from Björn Breitmeyer --- src/hb-private.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hb-private.hh b/src/hb-private.hh index 65052382a..06d7f228a 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -123,8 +123,10 @@ /* 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