From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/replicant/foundation/export.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Src/replicant/foundation/export.h (limited to 'Src/replicant/foundation/export.h') diff --git a/Src/replicant/foundation/export.h b/Src/replicant/foundation/export.h new file mode 100644 index 00000000..4454075d --- /dev/null +++ b/Src/replicant/foundation/export.h @@ -0,0 +1,18 @@ +#pragma once + +#ifdef _MSC_VER +#define DLLEXPORT __declspec(dllexport) +#elif defined(__GNUC__) +#define DLLEXPORT __attribute__ ((visibility("default"))) +#else +#error port me! +#endif + +#ifdef _MSC_VER +#define DLLIMPORT __declspec(dllimport) +#elif defined(__GNUC__) +#define DLLIMPORT +#else +#error port me! +#endif + -- cgit