mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-22 23:11:13 +00:00
Add APIENTRY to allow calling convention definitions.
This commit is contained in:
parent
30238a15b7
commit
2fc35f4d70
|
@ -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