Permalink
Browse files

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>
  • Loading branch information...
blueswirl committed Feb 25, 2011
1 parent 04483e1 commit 84803d7a27ef2e83c9b870ebd48e249696909e98
Showing with 1 addition and 1 deletion.
  1. +1 −1 bitops.h
View
@@ -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;

0 comments on commit 84803d7

Please sign in to comment.