From 431c478df9797c803a6c37b35f09988dc6c8ff7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Thu, 2 Dec 2010 12:26:55 +0000 Subject: [PATCH] util: C++ safe. --- src/gallium/auxiliary/util/u_surface.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/gallium/auxiliary/util/u_surface.h b/src/gallium/auxiliary/util/u_surface.h index 6b82e14aeca..6a7cc82b055 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 */ -- 2.30.2