From cbc7f6954872e85c8cf1c6af7e02d0cf471cc1a8 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Wed, 5 Jan 2011 23:08:29 +0100 Subject: [PATCH] ndk: Replace 'asm' with '__asm__' in See https://review.source.android.com/#change,20076 for details. Essentially this is to allow compilation with -std=c99 Change-Id: I4c830c38b2615352765ee40773c5aa701e5d2b68 --- ndk/platforms/android-3/arch-arm/include/asm/byteorder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndk/platforms/android-3/arch-arm/include/asm/byteorder.h b/ndk/platforms/android-3/arch-arm/include/asm/byteorder.h index 4da37bf8e..b8696959c 100644 --- a/ndk/platforms/android-3/arch-arm/include/asm/byteorder.h +++ b/ndk/platforms/android-3/arch-arm/include/asm/byteorder.h @@ -22,7 +22,7 @@ static inline __attribute_const__ __u32 ___arch__swab32(__u32 x) #ifndef __thumb__ if (!__builtin_constant_p(x)) { - asm ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x)); + __asm__ ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x)); } else #endif t = x ^ ((x << 16) | (x >> 16));