IDS peak genericC++ v1.17.0
Loading...
Searching...
No Matches
peak_dll_defines.h
Go to the documentation of this file.
1
7
8#pragma once
9
10#ifdef PEAK_DYNAMIC_LOADING
11# define PEAK_C_ABI_PREFIX peak::dynamic::DynamicLoader::
12#else
13# define PEAK_C_ABI_PREFIX // we could also set ::
14#endif
15
16#if defined(_WIN32)
17# ifdef PEAK_STATIC
18# define PEAK_PUBLIC
19# else
20# ifdef PEAK_EXPORT
21# define PEAK_PUBLIC __declspec(dllexport)
22# else
23# define PEAK_PUBLIC __declspec(dllimport)
24# endif
25# endif
26# if defined(_M_IX86) || defined(__i386__)
27# define PEAK_CALL_CONV __cdecl
28# else
29# define PEAK_CALL_CONV
30# endif
31#elif defined(__linux__)
32# define PEAK_PUBLIC
33# if defined(__i386__)
34# define PEAK_CALL_CONV __attribute__((cdecl))
35# else
36# define PEAK_CALL_CONV
37# endif
38#else
39# error Platform is not supported yet!
40#endif