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 // SC_BUILD_SCANDIT_SDK is set by the build system
23 # if !defined(SC_STATIC_LIBRARY) || SC_STATIC_LIBRARY==1
24 # define SC_EXPORT
25 # else
26 # if defined(SC_BUILD_SCANDIT_SDK)
27 # define SC_EXPORT __declspec(dllexport)
28 # else
29 # define SC_EXPORT __declspec(dllimport)
30 # endif
31 # endif
32 #elif defined(SC_GENERATE_DOCS)
33 # define SC_EXPORT
34 #elif !defined(SWIG)
35 # define SC_EXPORT __attribute__((visibility("default")))
36 #endif
37 
38 #if !defined(SC_PLATFORM_ANDROID)
39 # if defined(__ANDROID__) && __ANDROID__
40 # define SC_PLATFORM_ANDROID 1
41 # else
42 # define SC_PLATFORM_ANDROID 0
43 # endif
44 #endif
45 
46 #if !defined(SC_PLATFORM_IOS)
47 # if defined(__APPLE__)
48 # include "TargetConditionals.h"
49 # if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
50 # define SC_PLATFORM_IOS 1
51 # else
52 # define SC_PLATFORM_IOS 0
53 # endif
54 # else
55 # define SC_PLATFORM_IOS 0
56 # endif
57 #endif
58 
59 #if !defined(SC_PLATFORM_GENERIC)
60 # if SC_PLATFORM_ANDROID || SC_PLATFORM_IOS
61 # define SC_PLATFORM_GENERIC 0
62 # else
63 # define SC_PLATFORM_GENERIC 1
64 # endif
65 #endif
66 
71 #define SC_VERSION_MAJOR 4
72 
76 #define SC_VERSION_MINOR 16
77 
81 #define SC_VERSION_PATCH 4
82 
83 
87 #define SC_VERSION_SUFFIX
88 
90 
91 #define SC_VERSION_MAKE(major, minor, patch) \
92  ((major * 10000) + (minor * 100) + patch)
93 
95 
99 #define SC_VERSION_INT SC_VERSION_MAKE(SC_VERSION_MAJOR, SC_VERSION_MINOR, SC_VERSION_PATCH)
100 
101 
103 #define SC_VERSION_STRING_MAKE_(major, minor, patch, suffix) \
104  #major "." #minor "." #patch #suffix
105 
106 #define SC_VERSION_STRING_MAKE(major, minor, patch, suffix) \
107  SC_VERSION_STRING_MAKE_(major, minor, patch, suffix)
108 
110 
113 #define SC_VERSION_STRING \
114  SC_VERSION_STRING_MAKE(SC_VERSION_MAJOR, SC_VERSION_MINOR, \
115  SC_VERSION_PATCH, SC_VERSION_SUFFIX)
116 
117 
118 #include <inttypes.h>
119 
123 typedef int32_t ScBool;
124 
128 #define SC_TRUE 1
129 
133 #define SC_FALSE 0
134 
135 #endif // SC_CONFIG_H_
int32_t ScBool
Boolean value, can be SC_TRUE or SC_FALSE.
Definition: ScConfig.h:123