[Spice-commits] spice/macros.h
Arnon Gilboa
agilboa at kemper.freedesktop.org
Thu May 12 04:59:13 PDT 2011
spice/macros.h | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 5bb6ff4fa6c0a86442decd4bd00813642edf637c
Author: Arnon Gilboa <agilboa at redhat.com>
Date: Thu May 12 11:45:58 2011 +0300
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.
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
More information about the Spice-commits
mailing list