summaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe/p_compiler.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-07-01 22:04:58 +0900
committerJosé Fonseca <[email protected]>2008-07-01 22:04:58 +0900
commitb3da2a9524b47838da33d8f7fd63c5d90a659cfa (patch)
treecf0e237c3939ca82d95039c8094e564f45932170 /src/gallium/include/pipe/p_compiler.h
parent846f87d8264e2a3755b0a00e45e75602192957fe (diff)
gallium: Use the inline keyword on C++.
Diffstat (limited to 'src/gallium/include/pipe/p_compiler.h')
-rw-r--r--src/gallium/include/pipe/p_compiler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_compiler.h b/src/gallium/include/pipe/p_compiler.h
index d2b8c41be3d..2afb8464c73 100644
--- a/src/gallium/include/pipe/p_compiler.h
+++ b/src/gallium/include/pipe/p_compiler.h
@@ -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