Windows header issues.

This commit is contained in:
Calvin Rose 2021-08-20 18:49:13 -05:00
parent c786a4cbeb
commit 01b7891347
1 changed files with 4 additions and 1 deletions

View File

@ -320,7 +320,10 @@ typedef struct {
/* Some extra includes if EV is enabled */
#ifdef JANET_EV
#ifdef JANET_WINDOWS
#include <synchapi.h>
#ifdef JANET_NET
#include <winsock2.h>
#endif
#include <windows.h>
typedef CRTICAL_SECTION JanetOSMutex;
#else
#include <pthread.h>