documentation

 
Loading...
Searching...
No Matches
vlSDKDef.h
1// Copyright (c) Visometry GmbH.
2
3#ifndef VL_SDK_DEF_H
4#define VL_SDK_DEF_H
5
6#if defined _WIN32 || defined __CYGWIN__
7 #define VL_SDK_DLL_IMPORT __declspec(dllimport)
8 #define VL_SDK_DLL_EXPORT __declspec(dllexport)
9#else
10 #if __GNUC__ >= 4
11 #define VL_SDK_DLL_IMPORT __attribute__ ((visibility ("default")))
12 #define VL_SDK_DLL_EXPORT __attribute__ ((visibility ("default")))
13 #else
14 #define VL_SDK_DLL_IMPORT
15 #define VL_SDK_DLL_EXPORT
16 #endif
17#endif
18
19#ifdef VIS_BUILD_SDK
20 // Building shared library
21 #define VL_SDK_API VL_SDK_DLL_EXPORT
22#else
23 // Using shared library
24 #define VL_SDK_API VL_SDK_DLL_IMPORT
25#endif
26
27#ifdef _WIN32
28 #define VL_CALLINGCONVENTION __stdcall
29#else
30 #define VL_CALLINGCONVENTION
31#endif
32
33#endif // VL_SDK_DEF_H