Fix windows compilation issues

This commit is contained in:
2024-04-24 00:17:36 +03:00
parent 692b5b4297
commit bc1d198c10
2 changed files with 11 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
#include <windows.h>
#include <process.h>
struct bh_thread_s
@@ -19,7 +20,11 @@ struct bh_mutex_s
struct bh_cond_s
{
void *handle;
CRITICAL_SECTION lock;
HANDLE wait;
HANDLE done;
int waiting;
int signals;
};
int bh_thread_init_base(bh_thread_t *thread,