Mercurial > public > ostc_companion
diff Utils/Exception.h @ 7:0969ef86c42d
Use dll import/export for WIN32 only
| author | Ideenmodellierer |
|---|---|
| date | Mon, 12 Jan 2026 13:49:16 +0000 |
| parents | 177f640940f2 |
| children |
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
