Flutter plugin for scanning and generating QR codes using the ZXing library, supporting Android, iOS, and desktop platforms
flutterbarcode-generatorbarcode-scannergeneratorqrqrcodeqrcode-generatorqrcode-scannerscannerzxingbarcodezxscanner
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
557 B
25 lines
557 B
3 years ago
|
|
||
|
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32)
|
||
|
#define IS_WIN32
|
||
|
#endif
|
||
|
|
||
|
#ifdef __ANDROID__
|
||
|
#include <android/log.h>
|
||
|
#endif
|
||
|
|
||
|
#ifdef IS_WIN32
|
||
|
#include <windows.h>
|
||
|
#endif
|
||
|
|
||
|
#if defined(__GNUC__)
|
||
|
// Attributes to prevent 'unused' function from being removed and to make it visible
|
||
|
#define FUNCTION_ATTRIBUTE __attribute__((visibility("default"))) __attribute__((used))
|
||
|
#elif defined(_MSC_VER)
|
||
|
// Marking a function for export
|
||
|
#define FUNCTION_ATTRIBUTE __declspec(dllexport)
|
||
|
#endif
|
||
|
|
||
|
|
||
|
long long int get_now();
|
||
|
|
||
|
void platform_log(const char *fmt, ...);
|