Fix build on WEC2013
authorKonstantin Ritt <ritt.ks@gmail.com>
Fri, 10 Apr 2015 13:18:01 +0000 (17:18 +0400)
committerKonstantin Ritt <ritt.ks@gmail.com>
Fri, 10 Apr 2015 13:18:01 +0000 (17:18 +0400)
Based on patch from Björn Breitmeyer

src/hb-private.hh

index 6505238..06d7f22 100644 (file)
      /* 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