Oh yeah, OpenSSL on windows, too, these days.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4128 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2023-01-17 22:56:36 +00:00
parent 67d34bf70e
commit 134b2556ad

View File

@ -2,9 +2,7 @@
#include <uv.h>
#if !defined(_WIN32)
#include <openssl/crypto.h>
#endif
#include <quickjs.h>
@ -113,7 +111,6 @@ 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);
@ -128,13 +125,10 @@ 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()