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