Documentation
>
Scandit SDK
>
5.35.0 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
14
#if !defined(SC_EXTERN)
15
18
#define SC_EXTERN extern
19
#endif
20
21
#if defined(_WIN32)
22
# if defined(SC_STATIC_LIBRARY) && SC_STATIC_LIBRARY==1
23
# define SC_EXPORT
24
# else
25
# if defined(SC_BUILD_SCANDIT_SDK)
26
# define SC_EXPORT __declspec(dllexport)
27
# else
28
# define SC_EXPORT __declspec(dllimport)
29
# endif
30
# endif
31
#elif defined(SC_GENERATE_DOCS)
32
# define SC_EXPORT
33
#else
34
# define SC_EXPORT __attribute__((visibility("default")))
35
#endif
36
37
#if !defined(SC_PLATFORM_ANDROID)
38
# if defined(__ANDROID__) && __ANDROID__
39
# define SC_PLATFORM_ANDROID 1
40
# else
41
# define SC_PLATFORM_ANDROID 0
42
# endif
43
#endif
44
45
#if !defined(SC_PLATFORM_IOS)
46
# if defined(__APPLE__)
47
# include "TargetConditionals.h"
48
# if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
49
# define SC_PLATFORM_IOS 1
50
# else
51
# define SC_PLATFORM_IOS 0
52
# endif
53
# else
54
# define SC_PLATFORM_IOS 0
55
# endif
56
#endif
57
58
#if !defined(SC_PLATFORM_GENERIC)
59
# if SC_PLATFORM_ANDROID || SC_PLATFORM_IOS
60
# define SC_PLATFORM_GENERIC 0
61
# else
62
# define SC_PLATFORM_GENERIC 1
63
# endif
64
#endif
65
71
#define SC_VERSION_MAJOR 5
72
77
#define SC_VERSION_MINOR 35
78
83
#define SC_VERSION_PATCH 0
84
85
90
#define SC_VERSION_SUFFIX
91
93
#define SC_VERSION_MAKE(major, minor, patch) \
94
((major * 10000) + (minor * 100) + patch)
95
97
102
#define SC_VERSION_INT SC_VERSION_MAKE(SC_VERSION_MAJOR, SC_VERSION_MINOR, SC_VERSION_PATCH)
103
104
106
#define SC_VERSION_STRING_MAKE_(major, minor, patch, suffix) \
107
#major "." #minor "." #patch #suffix
108
109
#define SC_VERSION_STRING_MAKE(major, minor, patch, suffix) \
110
SC_VERSION_STRING_MAKE_(major, minor, patch, suffix)
111
117
#define SC_VERSION_STRING \
118
SC_VERSION_STRING_MAKE(SC_VERSION_MAJOR, SC_VERSION_MINOR, \
119
SC_VERSION_PATCH, SC_VERSION_SUFFIX)
120
121
122
#include <inttypes.h>
123
127
typedef
int32_t
ScBool
;
128
133
#define SC_TRUE 1
134
139
#define SC_FALSE 0
140
141
#endif // SC_CONFIG_H_
ScBool
int32_t ScBool
Boolean value, can be SC_TRUE or SC_FALSE.
Definition:
ScConfig.h:127