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