diff options
| author | 2021-08-20 18:49:13 -0500 | |
|---|---|---|
| committer | 2021-08-20 18:49:13 -0500 | |
| commit | 01b7891347f752322b82fa724fe03dde7384bdcf (patch) | |
| tree | f8490fe7bea329bf12326ba72dfc5a478cd21c66 /src/include/janet.h | |
| parent | Expose JanetOSMutex to make abstract types easier to write. (diff) | |
Windows header issues.
Diffstat (limited to 'src/include/janet.h')
| -rw-r--r-- | src/include/janet.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/janet.h b/src/include/janet.h index efce9ede..c1f4a907 100644 --- a/src/include/janet.h +++ b/src/include/janet.h @@ -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> |
