Mesa (master): util: C++ safe.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Thu Dec 2 12:27:26 UTC 2010


Module: Mesa
Branch: master
Commit: 431c478df9797c803a6c37b35f09988dc6c8ff7d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=431c478df9797c803a6c37b35f09988dc6c8ff7d

Author: José Fonseca <jfonseca at vmware.com>
Date:   Thu Dec  2 12:26:55 2010 +0000

util: C++ safe.

---

 src/gallium/auxiliary/util/u_surface.h |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_surface.h b/src/gallium/auxiliary/util/u_surface.h
index 6b82e14..6a7cc82 100644
--- a/src/gallium/auxiliary/util/u_surface.h
+++ b/src/gallium/auxiliary/util/u_surface.h
@@ -32,6 +32,12 @@
 #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 */




More information about the mesa-commit mailing list