diff --git a/layersvt/api_dump.h b/layersvt/api_dump.h index 6e13b6de3..33bee96e7 100644 --- a/layersvt/api_dump.h +++ b/layersvt/api_dump.h @@ -60,6 +60,8 @@ #include #include +#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) + #ifdef ANDROID #include diff --git a/layersvt/screenshot.cpp b/layersvt/screenshot.cpp index b9743371c..6ee65c576 100755 --- a/layersvt/screenshot.cpp +++ b/layersvt/screenshot.cpp @@ -44,6 +44,8 @@ using namespace std; #include "screenshot_parsing.h" +#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) + #ifdef ANDROID #include