util: C++ safe.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 2 Dec 2010 12:26:55 +0000 (12:26 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 2 Dec 2010 12:26:55 +0000 (12:26 +0000)
src/gallium/auxiliary/util/u_surface.h

index 6b82e14aeca44973767497aa4901c6cbe7d2830e..6a7cc82b0550710fc1dede3b7c686587b9d7b202 100644 (file)
 #include "pipe/p_compiler.h"
 #include "pipe/p_state.h"
 
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 extern void
 u_surface_default_template(struct pipe_surface *view,
                            const struct pipe_resource *texture,
@@ -76,4 +82,9 @@ util_clear_depth_stencil(struct pipe_context *pipe,
                          unsigned width, unsigned height);
 
 
+#ifdef __cplusplus
+}
+#endif
+
+
 #endif /* U_SURFACE_H */