Skip to content
This repository was archived by the owner on Jan 28, 2023. It is now read-only.

Commit 3e57d8d

Browse files
authored
Merge pull request #232 from coxuintel/mac_build
Fix macOS build failure on SDK 10.12 and host crash.
2 parents be7b3c6 + 26a8d62 commit 3e57d8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platforms/darwin/hax_wrapper.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ extern "C" void hax_log(int level, const char *fmt, ...)
6464
va_start(args, fmt);
6565
if (level >= HAX_LOG_DEFAULT) {
6666
printf("%s", kLogPrefix[level]);
67-
printf(fmt, args);
67+
vprintf(fmt, args);
6868
}
6969
va_end(args);
7070
}
@@ -74,7 +74,7 @@ extern "C" void hax_panic(const char *fmt, ...)
7474
va_list args;
7575
va_start(args, fmt);
7676
hax_log(HAX_LOGPANIC, fmt, args);
77-
panic(fmt, args);
77+
(panic)(fmt, args);
7878
va_end(args);
7979
}
8080

0 commit comments

Comments
 (0)