MYNT EYE D SDK  1.7.1
http://www.myntai.com/mynteye/depth
global.h
1 // Copyright 2018 Slightech Co., Ltd. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 #ifndef MYNTEYE_STUBS_GLOBAL_H_
15 #define MYNTEYE_STUBS_GLOBAL_H_
16 #pragma once
17 
18 #ifdef _WIN32
19  #define MYNTEYE_OS_WIN
20  #ifdef _WIN64
21  #define MYNTEYE_OS_WIN64
22  #else
23  #define MYNTEYE_OS_WIN32
24  #endif
25  #if defined(__MINGW32__) || defined(__MINGW64__)
26  #define MYNTEYE_OS_MINGW
27  #ifdef __MINGW64__
28  #define MYNTEYE_OS_MINGW64
29  #else
30  #define MYNTEYE_OS_MINGW32
31  #endif
32  #elif defined(__CYGWIN__) || defined(__CYGWIN32__)
33  #define MYNTEYE_OS_CYGWIN
34  #endif
35 #elif __APPLE__
36  #include <TargetConditionals.h>
37  #if TARGET_IPHONE_SIMULATOR
38  #define MYNTEYE_OS_IPHONE
39  #define MYNTEYE_OS_IPHONE_SIMULATOR
40  #elif TARGET_OS_IPHONE
41  #define MYNTEYE_OS_IPHONE
42  #elif TARGET_OS_MAC
43  #define MYNTEYE_OS_MAC
44  #else
45  #error "Unknown Apple platform"
46  #endif
47 #elif __ANDROID__
48  #define MYNTEYE_OS_ANDROID
49 #elif __linux__
50  #define MYNTEYE_OS_LINUX
51 #elif __unix__
52  #define MYNTEYE_OS_UNIX
53 #elif defined(_POSIX_VERSION)
54  #define MYNTEYE_OS_POSIX
55 #else
56  #error "Unknown compiler"
57 #endif
58 
59 #if defined(MYNTEYE_OS_WIN) && !defined(MYNTEYE_OS_MINGW)
60  #define MYNTEYE_OS_SEP "\\"
61 #else
62  #define MYNTEYE_OS_SEP "/"
63 #endif
64 
65 #if defined(MYNTEYE_OS_WIN)
66  #define MYNTEYE_DECL_EXPORT __declspec(dllexport)
67  #define MYNTEYE_DECL_IMPORT __declspec(dllimport)
68  #define MYNTEYE_DECL_HIDDEN
69 #else
70  #define MYNTEYE_DECL_EXPORT __attribute__((visibility("default")))
71  #define MYNTEYE_DECL_IMPORT __attribute__((visibility("default")))
72  #define MYNTEYE_DECL_HIDDEN __attribute__((visibility("hidden")))
73 #endif
74 
75 #ifdef DOXYGEN_WORKING
76  #define MYNTEYE_API
77 #else
78  #ifdef MYNTEYE_EXPORTS
79  #define MYNTEYE_API MYNTEYE_DECL_EXPORT
80  #else
81  #define MYNTEYE_API MYNTEYE_DECL_IMPORT
82  #endif
83 #endif
84 
85 #if (defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L || \
86  (defined(_MSC_VER) && _MSC_VER >= 1900))
87 #define MYNTEYE_LANG_CXX11 1
88 #endif
89 
90 #define MYNTEYE_STRINGIFY_HELPER(X) #X
91 #define MYNTEYE_STRINGIFY(X) MYNTEYE_STRINGIFY_HELPER(X)
92 
93 #define MYNTEYE_DISABLE_COPY(Class) \
94  Class(const Class&) = delete; \
95  Class& operator=(const Class&) = delete;
96 
97 #define MYNTEYE_DISABLE_MOVE(Class) \
98  Class(Class&&) = delete; \
99  Class& operator=(Class&&) = delete;
100 
101 #include "mynteyed/stubs/global_config.h"
102 
103 MYNTEYE_BEGIN_NAMESPACE
104 
105 template <typename... T>
106 void UNUSED(T&&...) {}
107 
108 #define MYNTEYE_DEPRECATED_COMPAT
109 
110 MYNTEYE_END_NAMESPACE
111 
112 #endif // MYNTEYE_STUBS_GLOBAL_H_