Mech-DLK SDK (C++)
3.0.0
Mech-DLK SDK (C++) Reference Documentation
Loading...
Searching...
No Matches
macro.h
Go to the documentation of this file.
1
#pragma once
2
3
#if defined _WIN32 || defined __CYGWIN__
4
#ifdef ENABLE_MMIND_DL_SDK_BUILD_DLL
5
#ifdef __GNUC__
6
#define MMIND_DL_SDK_CC_API __attribute__((dllexport))
7
#else
// __GNUC__
8
#define MMIND_DL_SDK_CC_API __declspec(dllexport)
9
#endif
// __GNUC__
10
#else
// MMIND_DL_SDK_BUILDING_DLL
11
#ifdef __GNUC__
12
#define MMIND_DL_SDK_CC_API __attribute__((dllimport))
13
#else
14
#define MMIND_DL_SDK_CC_API __declspec(dllimport)
15
#endif
// __GNUC__
16
#endif
// MMIND_DL_SDK_BUILDING_DLL
17
#else
// _WIN32 || __CYGWIN__
18
#if __GNUC__ >= 4
19
#define MMIND_DL_SDK_CC_API __attribute__((visibility("default")))
20
#else
21
#define MMIND_DL_SDK_CC_API
22
#endif
23
#endif
24
25
#ifdef __cplusplus
26
#define MMIND_DL_SDK_C_API extern "C" MMIND_DL_SDK_CC_API
27
#endif
28
29
#ifndef MMIND_DL_SDK_OPENCV
30
#define MMIND_DL_SDK_OPENCV
31
#endif
include
common
macro.h
Generated by
1.13.2