util: Make u_framebuffer.h C++ safe.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 2 Nov 2012 16:56:30 +0000 (16:56 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 5 Nov 2012 10:39:42 +0000 (10:39 +0000)
src/gallium/auxiliary/util/u_framebuffer.h

index e7dc1e9e41d3c4012d1ad4bb4757135fd359b0a4..a8906623042f24ce7bf124002d43b7a3076240ad 100644 (file)
 #include "pipe/p_state.h"
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 extern boolean
 util_framebuffer_state_equal(const struct pipe_framebuffer_state *dst,
                              const struct pipe_framebuffer_state *src);
@@ -51,4 +55,8 @@ util_framebuffer_min_size(const struct pipe_framebuffer_state *fb,
                           unsigned *width,
                           unsigned *height);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* U_FRAMEBUFFER_H */