Ensure STDCALL/STDCALLPTR is only invoked on x86

Prevent the code from trying to use stdcall for anything except (32-bit) x86 builds
because it's the only platform it's applicable for.
This commit is contained in:
GravisZro
2024-04-18 13:55:49 -04:00
parent ebc78a6463
commit 9a80863c7f
61 changed files with 78 additions and 435 deletions

View File

@@ -24,13 +24,7 @@
#include "osiris_import.h"
#include "osiris_common.h"
#ifdef _MSC_VER // Visual C++ Build
#define STDCALL __stdcall
#define STDCALLPTR *STDCALL
#else // Non-Visual C++ Build
#define STDCALL __attribute__((stdcall))
#define STDCALLPTR STDCALL *
#endif
#include "module.h"
#ifdef __cplusplus
extern "C" {