瀏覽代碼

sys: fix a link error on Win32.

undefined
Sam Hocevar 10 年之前
父節點
當前提交
a782ce8a32
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. +8
    -0
      src/sys/hacks.cpp

+ 8
- 0
src/sys/hacks.cpp 查看文件

@@ -23,12 +23,20 @@


extern "C" { extern "C" {


#if _M_X64
void *__imp___iob_func(void) void *__imp___iob_func(void)
#else
void *_imp____iob_func(void)
#endif
{ {
return NULL; return NULL;
} }


#if _M_X64
int __imp_fprintf(FILE *stream, char const *fmt, ...) int __imp_fprintf(FILE *stream, char const *fmt, ...)
#else
int _imp__fprintf(FILE *stream, char const *fmt, ...)
#endif
{ {
va_list va; va_list va;
va_start(va, fmt); va_start(va, fmt);


Loading…
取消
儲存