From 483d13ce611686c37d766e0a38fdf9aae1d39fe5 Mon Sep 17 00:00:00 2001 From: Arnon Gilboa Date: Thu, 12 May 2011 15:09:12 +0300 Subject: common: use INLINE instead of inline needed for spice/common files used by the client, server & qxl driver. in windows _inline works for both c/c++, while inline is c++ only. compiling the client with mixed c/c++ code required this define. --- common/bitops.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'common/bitops.h') diff --git a/common/bitops.h b/common/bitops.h index 666d82d..4823662 100644 --- a/common/bitops.h +++ b/common/bitops.h @@ -21,12 +21,14 @@ #ifndef BITOPS_H #define BITOPS_H +#include + #ifdef __cplusplus extern "C" { #endif #ifdef WIN32 -static inline int spice_bit_find_msb(uint32_t val) +static INLINE int spice_bit_find_msb(uint32_t val) { uint32_t r; __asm { @@ -74,7 +76,7 @@ static inline int spice_bit_find_msb(unsigned int val) #endif -static inline int spice_bit_next_pow2(unsigned int val) +static INLINE int spice_bit_next_pow2(unsigned int val) { if ((val & (val - 1)) == 0) { return val; -- cgit v1.2.3