mirror of
https://github.com/libretro/pcsx2.git
synced 2025-02-11 12:25:48 +00:00
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;
|
||||
|
||||
// TODO: linux (gcc)
|
||||
|
||||
#ifdef __INTEL_COMPILER
|
||||
sl.push_back(format("Intel C++ %d.%02d", __INTEL_COMPILER / 100, __INTEL_COMPILER % 100));
|
||||
#elif _MSC_VER
|
||||
|
@ -36,7 +36,7 @@
|
||||
#endif
|
||||
|
||||
PADconf* conf;
|
||||
char libraryName[256];
|
||||
static char libraryName[256];
|
||||
|
||||
keyEvent event;
|
||||
|
||||
|
@ -60,8 +60,6 @@ using namespace std;
|
||||
#define EXPORT_C_(type) extern "C" __attribute__((externally_visible,visibility("default"))) type
|
||||
#endif
|
||||
|
||||
extern char libraryName[256];
|
||||
|
||||
enum PadOptions
|
||||
{
|
||||
PADOPTION_FORCEFEEDBACK = 0x1,
|
||||
|
@ -28,7 +28,7 @@
|
||||
#ifdef _MSC_VER
|
||||
#define EXPORT_C_(type) extern "C" __declspec(dllexport) type CALLBACK
|
||||
#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
|
||||
|
||||
// We have our own versions that have the DLLExport attribute configured:
|
||||
|
Loading…
x
Reference in New Issue
Block a user