1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-25 01:37:19 +00:00

Include windows.h for windows builds

This commit is contained in:
Calvin Rose 2022-06-17 17:41:50 -05:00
parent b1bdffbc34
commit eed678a14b

View File

@ -26,12 +26,13 @@
#include "util.h"
#include "gc.h"
#include "state.h"
#endif
#ifdef JANET_EV
#ifdef JANET_WINDOWS
#include <windows.h>
#endif
#endif
#endif
/* Create new userdata */
void *janet_abstract_begin(const JanetAbstractType *atype, size_t size) {
@ -86,11 +87,11 @@ void *janet_abstract_threaded(const JanetAbstractType *atype, size_t size) {
#ifdef JANET_WINDOWS
void janet_os_mutex_size(void) {
size_t janet_os_mutex_size(void) {
return sizeof(CRITICAL_SECTION);
}
void janet_os_rwlock_size(void) {
size_t janet_os_rwlock_size(void) {
return sizeof(SRWLock);
}