From 843fa925649a228cd07da4f0937ed5d5c9154482 Mon Sep 17 00:00:00 2001 From: Paul Hollinsky Date: Fri, 11 Jun 2021 12:39:20 -0400 Subject: [PATCH] API: Legacy: Add standard DLLExport to LegacyDLLExport --- include/icsneo/platform/posix/dynamiclib.h | 2 +- include/icsneo/platform/windows/dynamiclib.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/icsneo/platform/posix/dynamiclib.h b/include/icsneo/platform/posix/dynamiclib.h index 2510c1d..cdfb896 100644 --- a/include/icsneo/platform/posix/dynamiclib.h +++ b/include/icsneo/platform/posix/dynamiclib.h @@ -11,7 +11,7 @@ // Nothing special is needed to export #define DLLExport -#define LegacyDLLExport +#define LegacyDLLExport DLLExport // #ifndef ICSNEO_NO_AUTO_DESTRUCT // #define ICSNEO_DESTRUCTOR __attribute__((destructor)); diff --git a/include/icsneo/platform/windows/dynamiclib.h b/include/icsneo/platform/windows/dynamiclib.h index 6c63758..12db241 100644 --- a/include/icsneo/platform/windows/dynamiclib.h +++ b/include/icsneo/platform/windows/dynamiclib.h @@ -5,10 +5,10 @@ #ifdef ICSNEOC_MAKEDLL #define DLLExport __declspec(dllexport) -#define LegacyDLLExport _stdcall #else #define DLLExport __declspec(dllimport) #endif +#define LegacyDLLExport _stdcall DLLExport // MSVC does not have the ability to specify a destructor #define ICSNEO_DESTRUCTOR