[wince] Two more Windows CE fixes
Report has it that it builds (and works) now: https://codereview.qt-project.org/#/c/92087/
This commit is contained in:
parent
fd0001d7db
commit
8fd4d70b14
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
typedef CRITICAL_SECTION hb_mutex_impl_t;
|
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_init(M) InitializeCriticalSection (M)
|
||||||
#define hb_mutex_impl_lock(M) EnterCriticalSection (M)
|
#define hb_mutex_impl_lock(M) EnterCriticalSection (M)
|
||||||
#define hb_mutex_impl_unlock(M) LeaveCriticalSection (M)
|
#define hb_mutex_impl_unlock(M) LeaveCriticalSection (M)
|
||||||
|
@ -96,6 +96,8 @@
|
|||||||
|
|
||||||
#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
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
Loading…
Reference in New Issue
Block a user