From a038c21ea83a1817b8d4a0dc14e1c68876e38727 Mon Sep 17 00:00:00 2001 From: no Date: Tue, 5 Jan 2016 19:39:02 -0500 Subject: [PATCH] [core] Don't demand Win32-specific features like __cdecl. --- Source/Project64-core/Plugins/PluginBase.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/Project64-core/Plugins/PluginBase.h b/Source/Project64-core/Plugins/PluginBase.h index c140964ad..c40a0091f 100644 --- a/Source/Project64-core/Plugins/PluginBase.h +++ b/Source/Project64-core/Plugins/PluginBase.h @@ -14,6 +14,17 @@ #include #include "PluginClass.h" +/* + * Usage of Win32-specific `__cdecl' seems limited to just the plugin files. + * + * If we really do need specific call conventions, maybe have a #define CALL. + * Otherwise, it'd be best to just delete this macro and all uses of __cdecl. + */ +#ifndef _WIN32 +#define __cdecl +/* dummy definition to pre-process this Win32-ism as blank garbage */ +#endif + class CPlugin : private CDebugSettings {