From 8fd4d70b1450d7261a35ab3dea1c70baea2e5c99 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 12 Aug 2014 13:12:31 -0400 Subject: [PATCH] [wince] Two more Windows CE fixes Report has it that it builds (and works) now: https://codereview.qt-project.org/#/c/92087/ --- src/hb-mutex-private.hh | 2 +- src/hb-private.hh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hb-mutex-private.hh b/src/hb-mutex-private.hh index eaa216950..628120195 100644 --- a/src/hb-mutex-private.hh +++ b/src/hb-mutex-private.hh @@ -46,7 +46,7 @@ #include typedef CRITICAL_SECTION hb_mutex_impl_t; -#define HB_MUTEX_IMPL_INIT { NULL, 0, 0, NULL, NULL, 0 } +#define HB_MUTEX_IMPL_INIT {0} #define hb_mutex_impl_init(M) InitializeCriticalSection (M) #define hb_mutex_impl_lock(M) EnterCriticalSection (M) #define hb_mutex_impl_unlock(M) LeaveCriticalSection (M) diff --git a/src/hb-private.hh b/src/hb-private.hh index 2709c0efe..ab18274db 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -96,6 +96,8 @@ #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 #ifdef _MSC_VER