pmt: header: make compatible with android NDK
This commit is contained in:
@@ -20,16 +20,9 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* check compiler system */
|
/* check compiler. only NDK supported */
|
||||||
#ifdef _WIN32
|
#if !defined(ANDROID)
|
||||||
#error "it can only be compiled in linux or android environment. but current system windows (_WIN32 defined)"
|
#error "compilation can only be done with android NDK"
|
||||||
#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"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _PMT_H
|
#ifndef _PMT_H
|
||||||
|
|||||||
Reference in New Issue
Block a user