MillicastSDK 2.0.0
Loading...
Searching...
No Matches
exports.h
Go to the documentation of this file.
1#ifndef MILLICAST_EXPORTS_H
2#define MILLICAST_EXPORTS_H
3
4#ifdef __APPLE__
5#include <TargetConditionals.h>
6#if defined(TARGET_OS_IOS) && TARGET_OS_IOS == 1
7#ifndef MILLICAST_SDK_IOS
8#define MILLICAST_SDK_IOS
9#endif // !MILLICAST_SDK_IOS
10#elif defined(TARGET_OS_TV) && TARGET_OS_TV == 1
11#ifndef MILLICAST_SDK_TVOS
12#define MILLICAST_SDK_TVOS
13#endif // !MILLICAST_SDK_TVOS
14#elif (defined(TARGET_OS_OSX) && TARGET_OS_OSX == 1) || \
15 (defined(TARGET_OS_MAC) && TARGET_OS_MAC == 1)
16#ifndef MILLICAST_SDK_MAC
17#define MILLICAST_SDK_MAC
18#endif // !MILLICAST_SDK_MAC
19#endif // iOS, tvOS, or macos
20#elif defined(__ANDROID__)
21#ifndef MILLICAST_SDK_ANDROID
22#define MILLICAST_SDK_ANDROID
23#endif // !MILLICAST_SDK_ANDROID
24#elif defined(__linux__)
25#ifndef MILLICAST_SDK_LINUX
26#define MILLICAST_SDK_LINUX
27#endif // !MILLICAST_SDK_LINUX
28#elif defined(_WIN32)
29#ifndef MILLICAST_SDK_WIN
30#define MILLICAST_SDK_WIN
31#endif // !MILLICAST_SDK_WIN
32#endif
33
34#ifdef MILLICAST_API_EXPORT
35
36#if defined MILLICAST_SDK_WIN
37#define MILLICAST_API __declspec(dllexport)
38#define MILLICAST_TEMPLATE_API
39#else // !Windows
40#define MILLICAST_API __attribute__((visibility("default")))
41#define MILLICAST_TEMPLATE_API MILLICAST_API
42#endif // !Windows
43
44#else // !MILLICAST_API_EXPORT
45
46#define MILLICAST_TEMPLATE_API
47
48#ifdef MILLICAST_SDK_WIN
49#define MILLICAST_API __declspec(dllimport)
50#else
51#define MILLICAST_API
52#endif
53
54#endif // !MILLICAST_API_EXPORT
55
56#endif // EXPORTS_H