comparison 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
comparison
equal deleted inserted replaced
6:fc91c3e09285 7:0969ef86c42d
43 #include <exception> 43 #include <exception>
44 44
45 ////////////////////////////////////////////////////////////////////////////// 45 //////////////////////////////////////////////////////////////////////////////
46 #define BUILD_OSTC_COMPANION 1 46 #define BUILD_OSTC_COMPANION 1
47 47
48
49 #ifdef _WIN32
48 #if defined(BUILD_OSTC_COMPANION) 50 #if defined(BUILD_OSTC_COMPANION)
49 # define EXPORT __declspec(dllexport) 51 # define EXPORT __declspec(dllexport)
50 #else 52 #else
51 # define EXPORT __declspec(dllimport) 53 # define EXPORT __declspec(dllimport)
54 #endif
55 #else
56 #define EXPORT
52 #endif 57 #endif
53 58
54 #if 0 59 #if 0
55 class EXPORT Exception 60 class EXPORT Exception
56 : public std::exception 61 : public std::exception