1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-24 17:27:18 +00:00

Windows header issues.

This commit is contained in:
Calvin Rose 2021-08-20 18:49:13 -05:00
parent c786a4cbeb
commit 01b7891347

View File

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