Mercurial > public > ostc_companion
diff Utils/Export.h @ 1:0b3630a29ad8
Initial version based on previous repository.
Project was ported to QT6 and in now cmake based.
| author | Ideenmodellierer <tiefenrauscher@web.de> |
|---|---|
| date | Thu, 27 Nov 2025 18:40:28 +0100 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Utils/Export.h Thu Nov 27 18:40:28 2025 +0100 @@ -0,0 +1,18 @@ +#ifndef EXPORT_H +#define EXPORT_H + + +#pragma once + +// Auf Windows unterscheidet man zwischen DLL-Export (build der DLL) und DLL-Import (Verwendung der DLL) +#if defined(_WIN32) +#if defined(BUILDING_OSTC_COMPANION) +#define EXPORT __declspec(dllexport) +#else +#define EXPORT __declspec(dllimport) +#endif +#else +#define EXPORT +#endif + +#endif // EXPORT_H
