mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 23:21:05 +00:00
Add APIENTRY to allow calling convention definitions.
This commit is contained in:
parent
9664a2a57e
commit
184ffc19fc
|
@ -376,7 +376,7 @@ namespace Bind
|
||||||
var parameters = d.Parameters.ToString()
|
var parameters = d.Parameters.ToString()
|
||||||
.Replace("String[]", "String*")
|
.Replace("String[]", "String*")
|
||||||
.Replace("[OutAttribute]", String.Empty);
|
.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);
|
sw.WriteLine("extern p{0} {0};", d.Name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue