From d340d2f57dc0d414ea66b1b556caaf8c98b1e967 Mon Sep 17 00:00:00 2001 From: Marcus Comstedt Date: Wed, 22 Sep 2010 22:16:54 +0200 Subject: adb: Improved detection of big endian architecture Instead of testing for the (compiler specific) define __ppc__ explicitly, use the define HAVE_BIG_ENDIAN provided by AndroidConfig.h. That way, it should work on all big endian systems. Change-Id: Ic4d62afcefce4c8ad5716178ebfcb2b055ac73ce --- adb/file_sync_service.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'adb/file_sync_service.h') diff --git a/adb/file_sync_service.h b/adb/file_sync_service.h index 11ea06b..e402e06 100644 --- a/adb/file_sync_service.h +++ b/adb/file_sync_service.h @@ -17,7 +17,7 @@ #ifndef _FILE_SYNC_SERVICE_H_ #define _FILE_SYNC_SERVICE_H_ -#ifdef __ppc__ +#ifdef HAVE_BIG_ENDIAN static inline unsigned __swap_uint32(unsigned x) { return (((x) & 0xFF000000) >> 24) -- cgit v1.1