From 560718862f0bd994b62361652d6fd558c4182e2a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 1 Apr 2015 11:04:33 -0700 Subject: [PATCH] Move WinCE define to better place --- src/hb-private.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hb-private.hh b/src/hb-private.hh index 06b24a8..99d5c58 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 -- 2.7.4