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 d2b8c41be3d2af28c837eac195361b59410d3d42..2afb8464c736b3e56058a51b155e65e2f997ba17 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