Add APIENTRY to allow calling convention definitions.
This commit is contained in:
parent
30238a15b7
commit
2fc35f4d70
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue