Add back __cdecl on older Wine versions

This commit is contained in:
Robbert van der Helm
2020-12-28 11:47:32 +01:00
parent 6ef740e0b0
commit ae71536639
4 changed files with 27 additions and 3 deletions
+5 -1
View File
@@ -36,7 +36,11 @@
* this group plugin host will function identically on both the plugin and the
* Wine VST host side.
*/
int __attribute__((visibility("default"))) main(int argc, char* argv[]) {
int __attribute__((visibility("default")))
#ifdef WINE_USE_CDECL
__cdecl
#endif
main(int argc, char* argv[]) {
set_realtime_priority();
// Instead of directly hosting a plugin, this process will receive a UNIX
+5 -1
View File
@@ -29,7 +29,11 @@
* plugin, and then connect back to the `libyabridge.so` instance that spawned
* this over the socket.
*/
int __attribute__((visibility("default"))) main(int argc, char* argv[]) {
int __attribute__((visibility("default")))
#ifdef WINE_USE_CDECL
__cdecl
#endif
main(int argc, char* argv[]) {
set_realtime_priority();
// We pass the name of the VST plugin .dll file to load and the base