From c1dc501e2335814bedaf7abe9ca45202be80aa9b Mon Sep 17 00:00:00 2001 From: Mathias Westerdahl Date: Wed, 16 May 2018 18:56:04 +0200 Subject: [PATCH] Extension now builds on Android --- qrcode/src/quirc/quirc_internal.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qrcode/src/quirc/quirc_internal.h b/qrcode/src/quirc/quirc_internal.h index 3df54f3..503e1a0 100644 --- a/qrcode/src/quirc/quirc_internal.h +++ b/qrcode/src/quirc/quirc_internal.h @@ -31,6 +31,10 @@ #define QUIRC_PERSPECTIVE_PARAMS 8 +#if defined(DM_PLATFORM_ANDROID) + #define UINT8_MAX 255 +#endif + #if QUIRC_MAX_REGIONS < UINT8_MAX typedef uint8_t quirc_pixel_t; #elif QUIRC_MAX_REGIONS < UINT16_MAX