Documentation
>
Scandit SDK
>
7.0.1 for C / Linux
Main Page
Related Pages
Data Structures
Files
Examples
File List
Globals
Scandit
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)
33
36
#define SC_EXTERN extern
37
#endif
38
39
#if defined(_WIN32)
40
# if defined(SC_STATIC_LIBRARY) && SC_STATIC_LIBRARY==1
41
# define SC_EXPORT
42
# else
43
# if defined(SC_BUILD_SCANDIT_SDK)
44
# define SC_EXPORT __declspec(dllexport)
45
# else
46
# define SC_EXPORT __declspec(dllimport)
47
# endif
48
# endif
49
#elif defined(SC_GENERATE_DOCS)
50
# define SC_EXPORT
51
#else
52
# define SC_EXPORT __attribute__((visibility("default")))
53
#endif
54
55
#if !defined(SC_PLATFORM_ANDROID)
56
# if defined(__ANDROID__) && __ANDROID__
57
# define SC_PLATFORM_ANDROID 1
58
# else
59
# define SC_PLATFORM_ANDROID 0
60
# endif
61
#endif
62
63
#if !defined(SC_PLATFORM_IOS)
64
# if defined(__APPLE__)
65
# include "TargetConditionals.h"
66
# if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
67
# define SC_PLATFORM_IOS 1
68
# else
69
# define SC_PLATFORM_IOS 0
70
# endif
71
# else
72
# define SC_PLATFORM_IOS 0
73
# endif
74
#endif
75
76
#if !defined(SC_PLATFORM_VISIONOS)
77
# if defined(__APPLE__)
78
# include "TargetConditionals.h"
79
# if defined(TARGET_OS_VISION) && TARGET_OS_VISION
80
# define SC_PLATFORM_VISIONOS 1
81
# else
82
# define SC_PLATFORM_VISIONOS 0
83
# endif
84
# else
85
# define SC_PLATFORM_VISIONOS 0
86
# endif
87
#endif
88
89
#if !defined(SC_PLATFORM_GENERIC)
90
# if SC_PLATFORM_ANDROID || SC_PLATFORM_IOS || SC_PLATFORM_VISIONOS
91
# define SC_PLATFORM_GENERIC 0
92
# else
93
# define SC_PLATFORM_GENERIC 1
94
# endif
95
#endif
96
102
#define SC_VERSION_MAJOR 7
103
108
#define SC_VERSION_MINOR 0
109
114
#define SC_VERSION_PATCH 1
115
116
121
#define SC_VERSION_SUFFIX
122
124
#define SC_VERSION_MAKE(major, minor, patch) \
125
((major * 10000) + (minor * 100) + patch)
126
128
133
#define SC_VERSION_INT SC_VERSION_MAKE(SC_VERSION_MAJOR, SC_VERSION_MINOR, SC_VERSION_PATCH)
134
135
137
#define SC_VERSION_STRING_MAKE_(major, minor, patch, suffix) \
138
#major "." #minor "." #patch #suffix
139
140
#define SC_VERSION_STRING_MAKE(major, minor, patch, suffix) \
141
SC_VERSION_STRING_MAKE_(major, minor, patch, suffix)
142
148
#define SC_VERSION_STRING \
149
SC_VERSION_STRING_MAKE(SC_VERSION_MAJOR, SC_VERSION_MINOR, \
150
SC_VERSION_PATCH, SC_VERSION_SUFFIX)
151
152
153
#include <inttypes.h>
154
158
typedef
int32_t
ScBool
;
159
164
#define SC_TRUE 1
165
170
#define SC_FALSE 0
171
172
#endif // SC_CONFIG_H_
ScBool
int32_t ScBool
Boolean value, can be SC_TRUE or SC_FALSE.
Definition:
ScConfig.h:158