Varjo Native SDK
Varjo_export.h
Go to the documentation of this file.
1 // Copyright 2019-2020 Varjo Technologies Oy. All rights reserved.
2 
3 #ifndef VARJO_EXPORT_H
4 #define VARJO_EXPORT_H
5 
6 #if defined __cplusplus
7 extern "C" {
8 #endif
9 
10 #ifndef __has_declspec_attribute
11 #define __has_declspec_attribute(x) 0
12 #endif
13 
14 #ifndef VARJORUNTIME_STATIC
15 #ifdef VARJORUNTIME_EXPORTS
16 #if defined(_MSC_VER) || __has_declspec_attribute(dllexport)
17 #define VARJORUNTIME_EXPORT __declspec(dllexport)
18 #else
19 #define VARJORUNTIME_EXPORT __attribute__((dllexport))
20 #endif
21 #else
22 #if defined(_MSC_VER) || __has_declspec_attribute(dllimport)
23 #define VARJORUNTIME_EXPORT __declspec(dllimport)
24 #else
25 #define VARJORUNTIME_EXPORT __attribute__((dllimport))
26 #endif
27 #endif
28 #else
29 #define VARJORUNTIME_EXPORT
30 #endif
31 
32 #ifndef VARJORUNTIME_NO_EXPORT
33 #define VARJORUNTIME_NO_EXPORT
34 #endif
35 
36 #ifndef VARJORUNTIME_DEPRECATED
37 #if defined(_MSC_VER) || __has_declspec_attribute(deprecated)
38 #define VARJORUNTIME_DEPRECATED __declspec(deprecated)
39 #else
40 #define VARJORUNTIME_DEPRECATED __attribute__((deprecated))
41 #endif
42 #endif
43 
44 #define VARJO_API VARJORUNTIME_EXPORT
45 #define VARJO_EXPERIMENTAL_API VARJORUNTIME_EXPORT
46 #define VARJO_DEPRECATED_API VARJORUNTIME_EXPORT VARJORUNTIME_DEPRECATED
47 
48 #if defined __cplusplus
49 }
50 #endif
51 
52 #endif // VARJO_EXPORT_H