Fix build on WEC2013

Based on patch from Björn Breitmeyer
This commit is contained in:
Konstantin Ritt 2015-04-10 17:18:01 +04:00
parent e8fd83932a
commit 855a5d7cb8
1 changed files with 3 additions and 1 deletions

View File

@ -123,8 +123,10 @@
/* Some things not defined on Windows CE. */ /* Some things not defined on Windows CE. */
# define strdup _strdup # define strdup _strdup
# define getenv(Name) NULL # define getenv(Name) NULL
# if _WIN32_WCE < 0x800
# define setlocale(Category, Locale) "C" # define setlocale(Category, Locale) "C"
static int errno = 0; /* Use something better? */ static int errno = 0; /* Use something better? */
# 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)
# define getenv(Name) NULL # define getenv(Name) NULL
# endif # endif