summaryrefslogtreecommitdiff
path: root/src/gallium/include/pipe/p_pointer.h
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-02-25 20:05:41 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-02-25 20:05:41 +0900
commite4e30089231831339815cccebf3a3a0ea6dcd2a9 (patch)
tree66a4b0da649d0814312b6464a129ec895ae012f1 /src/gallium/include/pipe/p_pointer.h
parentc8b069cc1e839b5dd7a11d33c291b6b587a45df3 (diff)
Make the pipe headers C++ friendly.
Diffstat (limited to 'src/gallium/include/pipe/p_pointer.h')
-rw-r--r--src/gallium/include/pipe/p_pointer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_pointer.h b/src/gallium/include/pipe/p_pointer.h
index e3927538e8..3a1e6be88e 100644
--- a/src/gallium/include/pipe/p_pointer.h
+++ b/src/gallium/include/pipe/p_pointer.h
@@ -30,6 +30,10 @@
#include "p_compiler.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
static INLINE intptr_t
pointer_to_intptr( const void *p )
{
@@ -84,4 +88,8 @@ align_pointer( const void *unaligned, uintptr_t alignment )
return uintptr_to_pointer( aligned );
}
+#ifdef __cplusplus
+}
+#endif
+
#endif /* P_POINTER_H */