From e8040de4366b4bf14f4cb9de26f37b8d632f8174 Mon Sep 17 00:00:00 2001 From: YZBruh Date: Mon, 13 May 2024 21:53:54 +0300 Subject: [PATCH] pmt: header: make compatible with android NDK --- src/include/pmt.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/include/pmt.h b/src/include/pmt.h index 4ae2388..3dae714 100644 --- a/src/include/pmt.h +++ b/src/include/pmt.h @@ -20,16 +20,9 @@ extern "C" { #endif -/* check compiler system */ -#ifdef _WIN32 - #error "it can only be compiled in linux or android environment. but current system windows (_WIN32 defined)" -#elif ! __linux__ || __android__ - #error "unknown compiler system founded" -#endif - -/* compiler architecture if arm is not 32-bit or 64-bit, the compilation is stopped */ -#if ! __SIZEOF_POINTER__ == 4 || ! __SIZEOF_POINTER__ == 8 - #error "only 32-bit or 64-bit arm compilers can be used" +/* check compiler. only NDK supported */ +#if !defined(ANDROID) + #error "compilation can only be done with android NDK" #endif #ifndef _PMT_H