From: Alexis Laferrière Date: Sat, 30 May 2015 17:46:37 +0000 (-0400) Subject: lib/binary: redirect 32 bits endianess functions on Android X-Git-Tag: v0.7.6~70^2 X-Git-Url: http://nitlanguage.org?hp=d1d7737aefd718307dd762d67219a1fc884541f4 lib/binary: redirect 32 bits endianess functions on Android Signed-off-by: Alexis Laferrière --- 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 `}