From c409caa8873e25699fc10ae435e8d123685f28f3 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 12 Jan 2022 22:36:09 +0800 Subject: ... --- include/cru/platform/graphics/Base.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/cru/platform/graphics/Base.hpp') diff --git a/include/cru/platform/graphics/Base.hpp b/include/cru/platform/graphics/Base.hpp index 26ae725a..3a18e39d 100644 --- a/include/cru/platform/graphics/Base.hpp +++ b/include/cru/platform/graphics/Base.hpp @@ -6,6 +6,17 @@ #include +#ifdef CRU_PLATFORM_WINDOWS +#ifdef CRU_PLATFORM_GRAPHICS_EXPORT_API +#define CRU_PLATFORM_GRAPHICS_API __declspec(dllexport) +#else +#define CRU_PLATFORM_GRAPHICS_API __declspec(dllimport) +#endif +#else +#define CRU_PLATFORM_GRAPHICS_API +#endif + + namespace cru::platform::graphics { // forward declarations struct IGraphicsFactory; -- cgit v1.2.3