From 653e16b0594267ae743b23523c2dec9ad1d0aa6a Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 4 Jun 2022 17:14:39 +0000 Subject: [PATCH] Don't support OpenSSL on windows. Yet? git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3893 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/mem.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mem.c b/src/mem.c index 8de2e97c..6f429112 100644 --- a/src/mem.c +++ b/src/mem.c @@ -2,7 +2,9 @@ #include +#if !defined(_WIN32) #include +#endif #include @@ -100,6 +102,7 @@ size_t tf_mem_get_uv_malloc_size() return s_uv_malloc_size; } +#if !defined(_WIN32) void* _tf_tls_alloc(size_t size, const char* file, int line) { return _tf_alloc(&s_tls_malloc_size, size); @@ -114,10 +117,13 @@ void _tf_tls_free(void* ptr, const char* file, int line) { _tf_free(&s_tls_malloc_size, ptr); } +#endif void tf_mem_replace_tls_allocator() { +#if !defined(_WIN32) CRYPTO_set_mem_functions(_tf_tls_alloc, _tf_tls_realloc, _tf_tls_free); +#endif } size_t tf_mem_get_tls_malloc_size()