From 99c42dca60722a5cc2b16746d65ad27775b8bc06 Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Thu, 28 Oct 2021 19:40:58 +0300 Subject: [PATCH] fix windows build --- src/common.h | 2 +- src/win/thread.c | 1 - win/tm.vcxproj | 8 ++++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/common.h b/src/common.h index 300b83f..fe6a6d5 100644 --- a/src/common.h +++ b/src/common.h @@ -33,7 +33,7 @@ # include # include -#endif +#endif TM_INLINE double diff --git a/src/win/thread.c b/src/win/thread.c index 9b9b97a..2bef71c 100644 --- a/src/win/thread.c +++ b/src/win/thread.c @@ -38,7 +38,6 @@ thread_new(void (*func)(void *), void *obj) { tm_thread *th; tm_thread_entry *entry; - alc = tm_get_allocator(); th = alc->calloc(1, sizeof(*th)); entry = calloc(1, sizeof(*entry)); diff --git a/win/tm.vcxproj b/win/tm.vcxproj index c800fb4..21dbf18 100644 --- a/win/tm.vcxproj +++ b/win/tm.vcxproj @@ -97,15 +97,15 @@ true - true + true true - true + true false - true + true false @@ -169,7 +169,7 @@ true true false - NDEBUG;TML_EXPORTS;_WINDOWS;_USRDLL;LIBTM_DLL;%(PreprocessorDefinitions) + NDEBUG;TML_EXPORTS;TM_EXPORTS;_WINDOWS;_USRDLL;LIBTM_DLL;%(PreprocessorDefinitions) true true CompileAsC