Fix enum64 for windows

This commit is contained in:
pancake 2014-03-28 16:22:41 +01:00
parent ae20ea8132
commit a18a8748f3

View File

@ -878,7 +878,7 @@ static void struct_decl(CType *type, int u)
}
if (strcmp (name, "{")) {
char *varstr = get_tok_str (v, NULL);
tcc_appendf ("%s.%s=0x%llx\n", name, varstr, c);
tcc_appendf ("%s.%s=0x%"PFMT64x"\n", name, varstr, c);
}
/* enum symbols have static storage */
ss = sym_push(v, &llong_type, VT_CONST, c);