cgen: remove srwlock definition workaround for tcc on windows (#8652)
parent
4152c704f3
commit
1bb4be17d8
|
@ -5,6 +5,8 @@ module sync
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
#include <synchapi.h>
|
||||||
|
|
||||||
fn C.InitializeConditionVariable(voidptr)
|
fn C.InitializeConditionVariable(voidptr)
|
||||||
fn C.WakeConditionVariable(voidptr)
|
fn C.WakeConditionVariable(voidptr)
|
||||||
fn C.SleepConditionVariableSRW(voidptr, voidptr, u32, u32) int
|
fn C.SleepConditionVariableSRW(voidptr, voidptr, u32, u32) int
|
||||||
|
|
|
@ -280,14 +280,6 @@ $c_common_macros
|
||||||
#pragma comment(lib, "Dbghelp")
|
#pragma comment(lib, "Dbghelp")
|
||||||
|
|
||||||
extern wchar_t **_wenviron;
|
extern wchar_t **_wenviron;
|
||||||
#elif !defined(SRWLOCK_INIT)
|
|
||||||
// these seem to be missing on Windows tcc
|
|
||||||
typedef struct SRWLOCK { void* SRWLOCK; } SRWLOCK;
|
|
||||||
void InitializeSRWLock(void*);
|
|
||||||
void AcquireSRWLockShared(void*);
|
|
||||||
void AcquireSRWLockExclusive(void*);
|
|
||||||
void ReleaseSRWLockShared(void*);
|
|
||||||
void ReleaseSRWLockExclusive(void*);
|
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
Loading…
Reference in New Issue