diff --git a/common/include/Pcsx2Api.h b/common/include/Pcsx2Api.h index 5841f931c3..06b1240d3c 100644 --- a/common/include/Pcsx2Api.h +++ b/common/include/Pcsx2Api.h @@ -33,7 +33,7 @@ #define NEW_PLUGIN_APIS #ifdef _MSC_VER -#define EXPORT_C(type) extern "C" __declspec(dllexport) type CALLBACK +#define EXPORT_C(type) extern "C" type CALLBACK #else #define EXPORT_C(type) extern "C" __attribute__((externally_visible,visibility("default"))) type #endif diff --git a/plugins/GSdx/stdafx.h b/plugins/GSdx/stdafx.h index a23bfba7a5..2d3e2d66de 100644 --- a/plugins/GSdx/stdafx.h +++ b/plugins/GSdx/stdafx.h @@ -202,7 +202,7 @@ using namespace stdext; #define alignas(n) __declspec(align(n)) #endif - #define EXPORT_C_(type) extern "C" __declspec(dllexport) type __stdcall + #define EXPORT_C_(type) extern "C" type __stdcall #define EXPORT_C EXPORT_C_(void) #define ALIGN_STACK(n) alignas(n) int dummy__; diff --git a/plugins/GSdx_legacy/stdafx.h b/plugins/GSdx_legacy/stdafx.h index e1ffe1ed74..07f55cfcd7 100644 --- a/plugins/GSdx_legacy/stdafx.h +++ b/plugins/GSdx_legacy/stdafx.h @@ -200,7 +200,7 @@ using namespace stdext; #define __aligned(t, n) __declspec(align(n)) t - #define EXPORT_C_(type) extern "C" __declspec(dllexport) type __stdcall + #define EXPORT_C_(type) extern "C" type __stdcall #define EXPORT_C EXPORT_C_(void) #define ALIGN_STACK(n) __aligned(int, n) __dummy; diff --git a/plugins/LilyPad/Global.h b/plugins/LilyPad/Global.h index e3f0df4de7..8b12b127a5 100644 --- a/plugins/LilyPad/Global.h +++ b/plugins/LilyPad/Global.h @@ -91,7 +91,7 @@ extern Window GSwin; #endif #ifdef _MSC_VER -#define EXPORT_C_(type) extern "C" __declspec(dllexport) type CALLBACK +#define EXPORT_C_(type) extern "C" type CALLBACK #else #define EXPORT_C_(type) extern "C" __attribute__((stdcall,externally_visible,visibility("default"))) type CALLBACK #endif diff --git a/plugins/spu2-x/src/PS2E-spu2.h b/plugins/spu2-x/src/PS2E-spu2.h index 112947802c..d01f10147c 100644 --- a/plugins/spu2-x/src/PS2E-spu2.h +++ b/plugins/spu2-x/src/PS2E-spu2.h @@ -26,7 +26,7 @@ #endif #ifdef _MSC_VER -#define EXPORT_C_(type) extern "C" __declspec(dllexport) type CALLBACK +#define EXPORT_C_(type) extern "C" type CALLBACK #else #define EXPORT_C_(type) extern "C" __attribute__((stdcall,externally_visible,visibility("default"))) type #endif diff --git a/plugins/xpad/stdafx.h b/plugins/xpad/stdafx.h index ca7195e206..522adab22c 100644 --- a/plugins/xpad/stdafx.h +++ b/plugins/xpad/stdafx.h @@ -36,8 +36,8 @@ typedef signed long long int64; #define countof(a) (sizeof(a) / sizeof(a[0])) -#define EXPORT_C extern "C" __declspec(dllexport) void __stdcall -#define EXPORT_C_(type) extern "C" __declspec(dllexport) type __stdcall +#define EXPORT_C extern "C" void __stdcall +#define EXPORT_C_(type) extern "C" type __stdcall #define ALIGN_STACK(n) __declspec(align(n)) int __dummy;