mdbx: fix and check width of off_t for Android.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2022-04-19 20:00:29 +03:00
parent 682ff99f1c
commit eb8bc865d1
3 changed files with 17 additions and 1 deletions

View File

@@ -332,6 +332,14 @@ typedef pthread_mutex_t mdbx_fastmutex_t;
#define MDBX_WORDBITS 32
#endif /* MDBX_WORDBITS */
#if defined(__ANDROID_API__) || defined(ANDROID)
#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS != MDBX_WORDBITS
#error "_FILE_OFFSET_BITS != MDBX_WORDBITS" (_FILE_OFFSET_BITS != MDBX_WORDBITS)
#elif defined(__FILE_OFFSET_BITS) && __FILE_OFFSET_BITS != MDBX_WORDBITS
#error "__FILE_OFFSET_BITS != MDBX_WORDBITS" (__FILE_OFFSET_BITS != MDBX_WORDBITS)
#endif
#endif /* Android */
/*----------------------------------------------------------------------------*/
/* Compiler's includes for builtins/intrinsics */