Add APIENTRY to allow calling convention definitions.

This commit is contained in:
the_fiddler 2010-12-07 01:26:11 +00:00
parent 30238a15b7
commit 2fc35f4d70

View file

@ -376,7 +376,7 @@ namespace Bind
var parameters = d.Parameters.ToString()
.Replace("String[]", "String*")
.Replace("[OutAttribute]", String.Empty);
sw.WriteLine("typedef {0} (*p{1}){2};", d.ReturnType, d.Name, parameters);
sw.WriteLine("typedef {0} (APIENTRY *p{1}){2};", d.ReturnType, d.Name, parameters);
sw.WriteLine("extern p{0} {0};", d.Name);
}
}