summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2011-02-25 17:21:22 +0000
committerBlue Swirl <blauwirbel@gmail.com>2011-02-25 17:21:22 +0000
commit84803d7a27ef2e83c9b870ebd48e249696909e98 (patch)
treedbd2d2100629d1be55a51ba9332e2d9c56a32cf3
parent04483e150d412f5861a00c30581df7ba90a816e7 (diff)
bitops: fix error on OpenBSD and mingw32
Fix this error: CC bitops.o In file included from /src/qemu/bitops.c:14: /src/qemu/bitops.h:69: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'unsigned' Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--bitops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitops.h b/bitops.h
index e2b9df315..07d1a0638 100644
--- a/bitops.h
+++ b/bitops.h
@@ -66,7 +66,7 @@ static unsigned long bitops_ffsl(unsigned long word)
*
* Undefined if no set bit exists, so code should check against 0 first.
*/
-static __always_inline unsigned long bitops_flsl(unsigned long word)
+static inline unsigned long bitops_flsl(unsigned long word)
{
int num = BITS_PER_LONG - 1;