|
NIM 跨平台 C++ SDK
|
浏览该文件的文档.
6#ifndef NIM_SDK_CPP_WRAPPER_DLL_H_
7#define NIM_SDK_CPP_WRAPPER_DLL_H_
20#if defined(NIM_SDK_CPPWRAPPER_EXPORTS)
21#define NIM_SDK_CPPWRAPPER_DLL_API __declspec(dllexport)
23#define NIM_SDK_CPPWRAPPER_DLL_API __declspec(dllimport)
29#if defined(NIM_SDK_CPPWRAPPER_EXPORTS)
30#define NIM_SDK_CPPWRAPPER_DLL_API __attribute__((visibility("default")))
32#define NIM_SDK_CPPWRAPPER_DLL_API
38#define NIM_SDK_CPPWRAPPER_DLL_API
43#if __has_extension(attribute_deprecated_with_message)
44#define NIMCPP_DEPRECATED(message) __attribute__((deprecated(message)))
46#elif defined(__GNUC__)
47#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))
48#define NIMCPP_DEPRECATED(message) __attribute__((deprecated(message)))
49#elif (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
50#define NIMCPP_DEPRECATED(message) __attribute__((__deprecated__))
52#elif defined(_MSC_VER)
54#define NIMCPP_DEPRECATED(message) __declspec(deprecated(message))
57#if !defined(NIMCPP_DEPRECATED)
58#define NIMCPP_DEPRECATED(message)