Mercurial > public > ostc_companion
changeset 7:0969ef86c42d
Use dll import/export for WIN32 only
| author | Ideenmodellierer |
|---|---|
| date | Mon, 12 Jan 2026 13:49:16 +0000 |
| parents | fc91c3e09285 |
| children | 21ce6187d32e |
| files | Utils/Exception.h |
| diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Utils/Exception.h Sat Jan 03 20:49:43 2026 +0100 +++ b/Utils/Exception.h Mon Jan 12 13:49:16 2026 +0000 @@ -45,11 +45,16 @@ ////////////////////////////////////////////////////////////////////////////// #define BUILD_OSTC_COMPANION 1 + +#ifdef _WIN32 #if defined(BUILD_OSTC_COMPANION) # define EXPORT __declspec(dllexport) #else # define EXPORT __declspec(dllimport) #endif +#else +#define EXPORT +#endif #if 0 class EXPORT Exception
