Initialize external GC Library

Co-Authored-By: Peter Zhu <peter@peterzhu.ca>
This commit is contained in:
Matt Valentine-House 2024-04-02 13:52:50 +01:00
parent a2ea4ec30c
commit 065710c0f5
6 changed files with 79 additions and 4 deletions

4
dln.c
View file

@ -339,7 +339,7 @@ dln_disable_dlclose(void)
#endif
#if defined(_WIN32) || defined(USE_DLN_DLOPEN)
static void *
void *
dln_open(const char *file)
{
static const char incompatible[] = "incompatible library version";
@ -427,7 +427,7 @@ dln_open(const char *file)
dln_loaderror("%s - %s", error, file);
}
static void *
void *
dln_sym(void *handle, const char *symbol)
{
#if defined(_WIN32)