X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=frontend%2Fplugin.c;h=812e503a99463b675f74717a9dfc14322b362029;hb=78de2879b23476890019dd434178b463b649da17;hp=a617c24e9495cd32347902658b7bfcc0991b436e;hpb=a34093eb63d1645fd2de9b412efe2587df9fdb3f;p=pcsx_rearmed.git diff --git a/frontend/plugin.c b/frontend/plugin.c index a617c24e..812e503a 100644 --- a/frontend/plugin.c +++ b/frontend/plugin.c @@ -15,14 +15,11 @@ #include "../libpcsxcore/system.h" #include "../plugins/cdrcimg/cdrcimg.h" -#ifndef _WIN32 +// this can't be __stdcall like it was in PSEmu API as too many functions are mixed up +#undef CALLBACK #define CALLBACK -#else -#define WIN32_LEAN_AND_MEAN -#include -#endif -static int dummy_func() { +static long CALLBACK dummy_func() { return 0; } @@ -49,7 +46,7 @@ extern void CALLBACK SPUasync(unsigned int, unsigned int); extern int CALLBACK SPUplayCDDAchannel(short *, int); /* PAD */ -static long PADreadPort1(PadDataS *pad) { +static long CALLBACK PADreadPort1(PadDataS *pad) { int pad_index = pad->requestPadIndex; pad->controllerType = in_type[pad_index]; @@ -80,7 +77,7 @@ static long PADreadPort1(PadDataS *pad) { return 0; } -static long PADreadPort2(PadDataS *pad) { +static long CALLBACK PADreadPort2(PadDataS *pad) { int pad_index = pad->requestPadIndex; pad->controllerType = in_type[pad_index];