summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnon Gilboa <agilboa@redhat.com>2011-05-12 11:45:58 +0300
committerArnon Gilboa <agilboa@redhat.com>2011-05-12 11:45:58 +0300
commit5bb6ff4fa6c0a86442decd4bd00813642edf637c (patch)
tree0d7d4998854b7721caa26bc926a8f281ad7a2bda
parentb95f8e77a59c095b9c3e021ff4126414492b9fe4 (diff)
downloadspice-protocol-5bb6ff4fa6c0a86442decd4bd00813642edf637c.tar.gz
spice-protocol-5bb6ff4fa6c0a86442decd4bd00813642edf637c.tar.xz
spice-protocol-5bb6ff4fa6c0a86442decd4bd00813642edf637c.zip
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.
-rw-r--r--spice/macros.h6
1 files changed, 6 insertions, 0 deletions
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