Skip to content
GitLab
菜单
项目
群组
代码片段
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
Panda
TinyCC
提交
b964fc69
提交
b964fc69
编辑于
7月 07, 2021
作者:
Christian Jullien
浏览文件
dlopen does not exist on Windows, recent macOS adds a dlopen call which is skipped on Windows.
上级
588d64c5
变更
1
Hide whitespace changes
Inline
Side-by-side
libtcc.c
浏览文件 @
b964fc69
...
...
@@ -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
...
...
编辑
预览
Supports
Markdown
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录