Fix build on Apple
@@ -157,22 +157,14 @@ _log(const char *file, int line, int panic, const char *fmt, ...)
strftime(buffer, 80, "%Y-%m-%d %H:%M:%S", localtime(&curTime.tv_sec));
// May be not the perfect place to fix this
-#ifdef __APPLE__
- len += sxprintf(buf + len, size - len, pdt, NULL,
-#else
len += dn_scnprintf(buf + len, size - len,
-#endif
"[%.*s.%03d] %s:%d ",
strlen(buffer), buffer, (int64_t)curTime.tv_usec / 1000,
file, line);
va_start(args, fmt);
-#ifdef __APPLE__
- len += vsxprintf(buf + len, size - len, pdt, NULL, fmt, args);
-#else
len += dn_vscnprintf(buf + len, size - len, fmt, args);
-#endif
va_end(args);
