IDS peak IPL v1.18.0
Loading...
Searching...
No Matches
peak_ipl_dll_defines.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#ifdef PEAK_IPL_DYNAMIC_LOADING
9# define PEAK_IPL_C_ABI_PREFIX peak::ipl::dynamic::DynamicLoader::
10#else
11# define PEAK_IPL_C_ABI_PREFIX // we could also set ::
12#endif
13
14#if defined(_WIN32)
15# ifdef PEAK_IPL_STATIC
16# define PEAK_IPL_PUBLIC
17# else
18# ifdef PEAK_IPL_EXPORT
19# define PEAK_IPL_PUBLIC __declspec(dllexport)
20# else
21# define PEAK_IPL_PUBLIC __declspec(dllimport)
22# endif
23# endif
24# if defined(_M_IX86) || defined(__i386__)
25# define PEAK_IPL_CALL_CONV __cdecl
26# else
27# define PEAK_IPL_CALL_CONV
28# endif
29#elif defined(__linux__)
30# define PEAK_IPL_PUBLIC
31# if defined(__i386__)
32# define PEAK_IPL_CALL_CONV __attribute__((cdecl))
33# else
34# define PEAK_IPL_CALL_CONV
35# endif
36#else
37# error Platform is not supported yet!
38#endif