NEMeetingKit V4.9.0
载入中...
搜索中...
未找到
build_config.h
浏览该文件的文档.
1// Copyright (c) 2022 NetEase, Inc. All rights reserved.
2// Use of this source code is governed by a MIT license that can be
3// found in the LICENSE file.
4
13#ifndef NEM_SDK_INTERFACE_BUILD_CONFIG_H_
14#define NEM_SDK_INTERFACE_BUILD_CONFIG_H_
15
16#define NNEM_SDK_INTERFACE_BEGIN_DECLS namespace nem_sdk_interface {
17#define NNEM_SDK_INTERFACE_END_DECLS }
18#define USING_NS_NNEM_SDK_INTERFACE using namespace nem_sdk_interface;
19
23#define NS_I_NEM_SDK nem_sdk_interface
24
25#ifdef __clang__
26#if __has_extension(attribute_deprecated_with_message)
27#define MEETING_KIT_DEPRECATED(message) __attribute__((deprecated(message)))
28#endif
29#elif defined(__GNUC__) // not clang (gcc comes later since clang emulates gcc)
30#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))
31#define MEETING_KIT_DEPRECATED(message) __attribute__((deprecated(message)))
32#elif (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
33#define MEETING_KIT_DEPRECATED(message) __attribute__((__deprecated__))
34#endif // GNUC version
35#elif defined(_MSC_VER) // MSVC (after clang because clang on Windows emulates
36 // MSVC)
37#define MEETING_KIT_DEPRECATED(message) __declspec(deprecated(message))
38#endif // __clang__ || __GNUC__ || _MSC_VER
39
40#if !defined(MEETING_KIT_DEPRECATED)
41#define MEETING_KIT_DEPRECATED(message)
42#endif // if !defined(MEETING_KIT_DEPRECATED)
43
44#endif // NEM_SDK_INTERFACE_BUILD_CONFIG_H_