From c1c525076f5b35e3faa28509a7f96339173d749e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Sat, 30 May 2015 13:46:37 -0400 Subject: [PATCH 1/1] lib/binary: redirect 32 bits endianess functions on Android MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/binary/binary.nit | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/binary/binary.nit b/lib/binary/binary.nit index 59ec88d..10d9017 100644 --- a/lib/binary/binary.nit +++ b/lib/binary/binary.nit @@ -45,10 +45,13 @@ in "C" `{ #include // Android compatibility + #ifndef be32toh + #define be32toh(val) betoh32(val) + #define le32toh(val) letoh32(val) + #endif + #ifndef be64toh #define be64toh(val) betoh64(val) - #endif - #ifndef le64toh #define le64toh(val) letoh64(val) #endif `} -- 1.7.9.5