ScConfig.h
Go to the documentation of this file.
1
10#ifndef SC_CONFIG_H_
11#define SC_CONFIG_H_
12
16#if defined(__cplusplus)
17# define SC_EXTERN_C_BEGIN extern "C" {
18#else
19# define SC_EXTERN_C_BEGIN
20#endif
21
25#if defined(__cplusplus)
26# define SC_EXTERN_C_END }
27#else
28# define SC_EXTERN_C_END
29#endif
30
32#if !defined(SC_EXTERN)
36#define SC_EXTERN extern
37#endif
38
39#define SC_STATIC_LIBRARY 1
40#define SC_BUILD_SCANDIT_SDK 1
41
42#if defined(_WIN32)
43# if SC_STATIC_LIBRARY==1
44# define SC_EXPORT
45# else
46# if defined(SC_BUILD_SCANDIT_SDK)
47# define SC_EXPORT __declspec(dllexport)
48# else
49# define SC_EXPORT __declspec(dllimport)
50# endif
51# endif
52#elif defined(SC_GENERATE_DOCS)
53# define SC_EXPORT
54#else
55# define SC_EXPORT __attribute__((visibility("default")))
56#endif
57
58#if defined(__clang__) || defined(__GNUC__)
59# define SC_DEPRECATED(msg) __attribute__((deprecated(msg)))
60#else
61# define SC_DEPRECATED(...)
62#endif
63
64#if !defined(SC_PLATFORM_ANDROID)
65# if defined(__ANDROID__) && __ANDROID__
66# define SC_PLATFORM_ANDROID 1
67# else
68# define SC_PLATFORM_ANDROID 0
69# endif
70#endif
71
72#if !defined(SC_PLATFORM_IOS)
73# if defined(__APPLE__)
74# include "TargetConditionals.h"
75# if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
76# define SC_PLATFORM_IOS 1
77# else
78# define SC_PLATFORM_IOS 0
79# endif
80# else
81# define SC_PLATFORM_IOS 0
82# endif
83#endif
84
85#if !defined(SC_PLATFORM_VISIONOS)
86# if defined(__APPLE__)
87# include "TargetConditionals.h"
88# if defined(TARGET_OS_VISION) && TARGET_OS_VISION
89# define SC_PLATFORM_VISIONOS 1
90# else
91# define SC_PLATFORM_VISIONOS 0
92# endif
93# else
94# define SC_PLATFORM_VISIONOS 0
95# endif
96#endif
97
98#if !defined(SC_PLATFORM_GENERIC)
99# if SC_PLATFORM_ANDROID || SC_PLATFORM_IOS || SC_PLATFORM_VISIONOS
100# define SC_PLATFORM_GENERIC 0
101# else
102# define SC_PLATFORM_GENERIC 1
103# endif
104#endif
106
111#define SC_VERSION_MAJOR 8
112
117#define SC_VERSION_MINOR 4
118
123#define SC_VERSION_PATCH 0
124
125
130#define SC_VERSION_SUFFIX -beta.1
131
133#define SC_VERSION_MAKE(major, minor, patch) \
134 ((major * 10000) + (minor * 100) + patch)
136
137
142#define SC_VERSION_INT SC_VERSION_MAKE(SC_VERSION_MAJOR, SC_VERSION_MINOR, SC_VERSION_PATCH)
143
144
146#define SC_VERSION_STRING_MAKE_(major, minor, patch, suffix) \
147 #major "." #minor "." #patch #suffix
148
149#define SC_VERSION_STRING_MAKE(major, minor, patch, suffix) \
150 SC_VERSION_STRING_MAKE_(major, minor, patch, suffix)
152
157#define SC_VERSION_STRING \
158 SC_VERSION_STRING_MAKE(SC_VERSION_MAJOR, SC_VERSION_MINOR, \
159 SC_VERSION_PATCH, SC_VERSION_SUFFIX)
160
161
162#include <inttypes.h>
163
167typedef int32_t ScBool;
168
173#define SC_TRUE 1
174
179#define SC_FALSE 0
180
181#endif // SC_CONFIG_H_
int32_t ScBool
Boolean value, can be SC_TRUE or SC_FALSE.
Definition: ScConfig.h:167