mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-07 20:00:07 -04:00
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:
@@ -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" {
|
||||
@@ -264,4 +258,4 @@ short MyDoor::CallEvent(int event, tOSIRISEventInfo *data) {
|
||||
} break;
|
||||
};
|
||||
return CONTINUE_CHAIN | CONTINUE_DEFAULT;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user