gallium: Use the inline keyword on C++.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Tue, 1 Jul 2008 13:04:58 +0000 (22:04 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Tue, 1 Jul 2008 13:04:58 +0000 (22:04 +0900)
src/gallium/include/pipe/p_compiler.h

index d2b8c41..2afb846 100644 (file)
@@ -107,7 +107,9 @@ typedef unsigned char boolean;
 
 
 /* Function inlining */
-#if defined(__GNUC__)
+#ifdef __cplusplus
+#  define INLINE inline
+#elif defined(__GNUC__)
 #  define INLINE __inline__
 #elif defined(_MSC_VER)
 #  define INLINE __inline