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

@ -76,18 +76,25 @@
#define CPPEXTERN extern
#endif
#ifdef _MSC_VER // MSVC Build
# define STDCALL __stdcall
# define STDCALLPTR *STDCALL
#else // Non-MS compilers
# if defined(__i386__) || defined(_X86_) || defined(__THW_INTEL__)
# define STDCALL __attribute__((stdcall))
# else
# define STDCALL
# endif
# define STDCALLPTR STDCALL *
#endif
# define DLLFUNCCALL STDCALL
# define DLLFUNCCALLPTR STDCALLPTR
#ifdef WIN32
//=========================Windows Definition============================
#include "windows.h"
#ifdef _MSC_VER // Visual C++ Build
#define DLLFUNCCALL __stdcall
#define DLLFUNCCALLPTR *DLLFUNCCALL
#else // Non-Visual C++ Build
#define DLLFUNCCALL __attribute__((stdcall))
#define DLLFUNCCALLPTR DLLFUNCCALL *
#endif
#define MODPROCADDRESS FARPROC
#define DLLFUNCEXPORT __declspec(dllexport)
#define DLLFUNCIMPORT __declspec(dllimport)
@ -101,8 +108,6 @@ typedef struct {
#include <dlfcn.h>
#define MODPROCADDRESS void *
#define DLLFUNCCALL __attribute__((stdcall))
#define DLLFUNCCALLPTR DLLFUNCCALL *
#define DLLFUNCEXPORT
#define DLLFUNCIMPORT
#define DLLEXPORT CPPEXTERN
@ -114,8 +119,6 @@ typedef struct {
#elif defined(MACINTOSH)
//==========================Mac Definitions============================
#define MODPROCADDRESS void *
#define DLLFUNCCALL
#define DLLFUNCCALLPTR DLLFUNCCALL *
#define DLLFUNCEXPORT
#define DLLFUNCIMPORT
#define DLLEXPORT
@ -165,4 +168,4 @@ MODPROCADDRESS mod_GetSymbol(module *handle, char *symstr, unsigned char parmbyt
// again, it would return no error
int mod_GetLastError(void);
#endif
#endif

View File

@ -26,13 +26,7 @@
#include "osiris_vector.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -28,13 +28,7 @@
#include "AIGame3_External.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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -12,13 +12,7 @@
#include "osiris_common.h"
#include "dallasfuncs.cpp"
#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 <utils/lib_helper.h>
#ifdef __cplusplus
extern "C" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -26,13 +26,7 @@
#include "osiris_vector.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -26,13 +26,7 @@
#include "osiris_vector.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -25,13 +25,7 @@
#include "osiris_common.h"
#include "osiris_vector.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" {
@ -632,4 +626,4 @@ short LavaRock::CallEvent(int event, tOSIRISEventInfo *data) {
}
return CONTINUE_CHAIN | CONTINUE_DEFAULT;
}
}

View File

@ -25,13 +25,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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

View File

@ -30,13 +30,7 @@
#include "osiris_common.h"
#include "DallasFuncs.cpp"
#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" {

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" {
@ -264,4 +258,4 @@ short MyDoor::CallEvent(int event, tOSIRISEventInfo *data) {
} break;
};
return CONTINUE_CHAIN | CONTINUE_DEFAULT;
}
}

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" {