building with mingw for windows

This commit is contained in:
Andrew Kelley
2017-05-23 00:26:12 -04:00
parent 1c8fee41c2
commit d8d45908fa
14 changed files with 126 additions and 44 deletions

View File

@@ -628,7 +628,7 @@ static void visit_fn_decl(Context *c, const FunctionDecl *fn_decl) {
const ParmVarDecl *param = fn_decl->getParamDecl(i);
const char *name = decl_name(param);
if (strlen(name) == 0) {
name_buf = buf_sprintf("arg%zu", i);
name_buf = buf_sprintf("arg%" ZIG_PRI_usize "", i);
} else {
name_buf = buf_create_from_str(name);
}