mirror of https://github.com/PCSX2/pcsx2.git
spu2x: declare exported function as stdcall
* Fix a stack buffer overflow on address sanitizer * Might explain an old clang crash
This commit is contained in:
parent
545c1d387c
commit
c456764342
|
@ -52,8 +52,6 @@ const char* GSUtil::GetLibName()
|
||||||
|
|
||||||
list<string> sl;
|
list<string> sl;
|
||||||
|
|
||||||
// TODO: linux (gcc)
|
|
||||||
|
|
||||||
#ifdef __INTEL_COMPILER
|
#ifdef __INTEL_COMPILER
|
||||||
sl.push_back(format("Intel C++ %d.%02d", __INTEL_COMPILER / 100, __INTEL_COMPILER % 100));
|
sl.push_back(format("Intel C++ %d.%02d", __INTEL_COMPILER / 100, __INTEL_COMPILER % 100));
|
||||||
#elif _MSC_VER
|
#elif _MSC_VER
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
PADconf* conf;
|
PADconf* conf;
|
||||||
char libraryName[256];
|
static char libraryName[256];
|
||||||
|
|
||||||
keyEvent event;
|
keyEvent event;
|
||||||
|
|
||||||
|
|
|
@ -60,8 +60,6 @@ using namespace std;
|
||||||
#define EXPORT_C_(type) extern "C" __attribute__((externally_visible,visibility("default"))) type
|
#define EXPORT_C_(type) extern "C" __attribute__((externally_visible,visibility("default"))) type
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern char libraryName[256];
|
|
||||||
|
|
||||||
enum PadOptions
|
enum PadOptions
|
||||||
{
|
{
|
||||||
PADOPTION_FORCEFEEDBACK = 0x1,
|
PADOPTION_FORCEFEEDBACK = 0x1,
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define EXPORT_C_(type) extern "C" __declspec(dllexport) type CALLBACK
|
#define EXPORT_C_(type) extern "C" __declspec(dllexport) type CALLBACK
|
||||||
#else
|
#else
|
||||||
#define EXPORT_C_(type) extern "C" __attribute__((externally_visible,visibility("default"))) type
|
#define EXPORT_C_(type) extern "C" __attribute__((stdcall,externally_visible,visibility("default"))) type
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// We have our own versions that have the DLLExport attribute configured:
|
// We have our own versions that have the DLLExport attribute configured:
|
||||||
|
|
Loading…
Reference in New Issue