From 5bb6ff4fa6c0a86442decd4bd00813642edf637c Mon Sep 17 00:00:00 2001 From: Arnon Gilboa Date: Thu, 12 May 2011 11:45:58 +0300 Subject: [PATCH] macros: define 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. --- spice/macros.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spice/macros.h b/spice/macros.h index 62157b4..78538a5 100644 --- a/spice/macros.h +++ b/spice/macros.h @@ -101,6 +101,12 @@ # define SPICE_END_DECLS #endif +#ifdef __GNUC__ +#define INLINE inline +#else +#define INLINE _inline +#endif /* __GNUC__ */ + #ifndef FALSE #define FALSE (0) #endif