diff options
author | Andreas Holzammer <andreas.holzammer@kdab.com> | 2014-08-12 14:42:06 +0200 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2014-08-14 02:08:57 +0200 |
commit | 2635b946073502bbf40071c269c2daab2d562f05 (patch) | |
tree | b27c90f88f88cd03feb7237cca857b95ffe3e5d1 /src/3rdparty/harfbuzz-ng/src/hb-mutex-private.hh | |
parent | 8c864ac49861b397a6d3e8b4a93c39b1ed373644 (diff) |
Fix compile for harfbuzz-ng for wince
CRITICAL_SECTION has different members, so adjust that
strdup is only there as _strdup so use that
There is no MemoryBarrier()
There is no environment so dont use getenv
There is no locale so dont use it
There is no errno so just fake it
Change-Id: Ia7197c4f0df50513078c906ed503aec33ee42b82
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src/3rdparty/harfbuzz-ng/src/hb-mutex-private.hh')
-rw-r--r-- | src/3rdparty/harfbuzz-ng/src/hb-mutex-private.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/3rdparty/harfbuzz-ng/src/hb-mutex-private.hh b/src/3rdparty/harfbuzz-ng/src/hb-mutex-private.hh index 0fb21c2e86..e2ee78b290 100644 --- a/src/3rdparty/harfbuzz-ng/src/hb-mutex-private.hh +++ b/src/3rdparty/harfbuzz-ng/src/hb-mutex-private.hh @@ -47,7 +47,11 @@ #define WIN32_LEAN_AND_MEAN #include <windows.h> typedef CRITICAL_SECTION hb_mutex_impl_t; +#ifdef _WIN32_WCE +#define HB_MUTEX_IMPL_INIT { 0, 0, NULL, NULL, 0 } +#else #define HB_MUTEX_IMPL_INIT { NULL, 0, 0, NULL, NULL, 0 } +#endif #define hb_mutex_impl_init(M) InitializeCriticalSection (M) #define hb_mutex_impl_lock(M) EnterCriticalSection (M) #define hb_mutex_impl_unlock(M) LeaveCriticalSection (M) |