mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-21 04:14:18 +08:00
dlopen does not exist on Windows, recent macOS adds a dlopen call which is skipped on Windows.
This commit is contained in:
parent
588d64c538
commit
b964fc6922
5
libtcc.c
5
libtcc.c
@ -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)
|
||||
(void)s;
|
||||
return -1;
|
||||
#else
|
||||
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)
|
||||
cstr_free(&path);
|
||||
tcc_free(sdkroot);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#undef SZPAIR
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user