Commit b964fc69 authored by Christian Jullien's avatar Christian Jullien
Browse files

dlopen does not exist on Windows, recent macOS adds a dlopen call which is skipped on Windows.

parent 588d64c5
......@@ -860,6 +860,10 @@ LIBTCCAPI void tcc_delete(TCCState *s1)
#define SZPAIR(s) s "", sizeof(s)-1
ST_FUNC int tcc_add_macos_sdkpath(TCCState* s)
#if defined(_WIN32)
return -1;
char *sdkroot = NULL, *pos = NULL;
void* xcs = dlopen("libxcselect.dylib", RTLD_GLOBAL | RTLD_LAZY);
CString path = {};
......@@ -875,6 +879,7 @@ ST_FUNC int tcc_add_macos_sdkpath(TCCState* s)
return 0;
#undef SZPAIR
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment