Deprecation warning

Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.

We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.

You'll find the updated documentation at: Data Capture SDK Documentation for Android

ScConfig.h
Go to the documentation of this file.
1 
10 #ifndef SC_CONFIG_H_
11 #define SC_CONFIG_H_
12 
13 #if !defined(SC_EXTERN)
14 
17 #define SC_EXTERN extern
18 #endif
19 
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 #elif !defined(SWIG)
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 
70 #define SC_VERSION_MAJOR 5
71 
75 #define SC_VERSION_MINOR 5
76 
80 #define SC_VERSION_PATCH 1
81 
82 
86 #define SC_VERSION_SUFFIX
87 
89 
90 #define SC_VERSION_MAKE(major, minor, patch) \
91  ((major * 10000) + (minor * 100) + patch)
92 
94 
98 #define SC_VERSION_INT SC_VERSION_MAKE(SC_VERSION_MAJOR, SC_VERSION_MINOR, SC_VERSION_PATCH)
99 
100 
102 #define SC_VERSION_STRING_MAKE_(major, minor, patch, suffix) \
103  #major "." #minor "." #patch #suffix
104 
105 #define SC_VERSION_STRING_MAKE(major, minor, patch, suffix) \
106  SC_VERSION_STRING_MAKE_(major, minor, patch, suffix)
107 
109 
112 #define SC_VERSION_STRING \
113  SC_VERSION_STRING_MAKE(SC_VERSION_MAJOR, SC_VERSION_MINOR, \
114  SC_VERSION_PATCH, SC_VERSION_SUFFIX)
115 
116 
117 #include <inttypes.h>
118 
122 typedef int32_t ScBool;
123 
127 #define SC_TRUE 1
128 
132 #define SC_FALSE 0
133 
134 #endif // SC_CONFIG_H_
int32_t ScBool
Boolean value, can be SC_TRUE or SC_FALSE.
Definition: ScConfig.h:122