diff --git a/base/include/flat_obj.h b/base/include/flat_obj.h index 1691998f83836aee00786717cf6cd36e1ebbbb20..24d149ab110cedf72b66b943c5d3330ed16ab775 100644 --- a/base/include/flat_obj.h +++ b/base/include/flat_obj.h @@ -41,6 +41,16 @@ typedef __u64 binder_uintptr_t; #endif +#if INTPTR_MAX == INT32_MAX +#define BINDER_IPC_32BIT +#elif INTPTR_MAX == INT64_MAX +#ifdef BINDER_IPC_32BIT +#undef BINDER_IPC_32BIT +#endif +#else +#error "Environment not 32 or 64 bit system." +#endif + struct parcel_binder_object_header { __u32 type; };