Move WinCE define to better place

This commit is contained in:
Behdad Esfahbod 2015-04-01 11:04:33 -07:00
parent aee685086c
commit 560718862f
1 changed files with 1 additions and 2 deletions

View File

@ -121,6 +121,7 @@
# if defined(_WIN32_WCE) # if defined(_WIN32_WCE)
/* Some things not defined on Windows CE. */ /* Some things not defined on Windows CE. */
# define strdup _strdup
# define getenv(Name) NULL # define getenv(Name) NULL
# define setlocale(Category, Locale) "C" # define setlocale(Category, Locale) "C"
static int errno = 0; /* Use something better? */ static int errno = 0; /* Use something better? */
@ -129,8 +130,6 @@ static int errno = 0; /* Use something better? */
# endif # endif
# if (defined(__WIN32__) && !defined(__WINE__)) || defined(_MSC_VER) # if (defined(__WIN32__) && !defined(__WINE__)) || defined(_MSC_VER)
# define snprintf _snprintf # define snprintf _snprintf
/* Windows CE only has _strdup, while rest of Windows has both. */
# define strdup _strdup
# endif # endif
#endif #endif