diff options
Diffstat (limited to 'Src/replicant/foundation/export.h')
-rw-r--r-- | Src/replicant/foundation/export.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 + |