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