From: José Fonseca Date: Thu, 2 Dec 2010 12:26:55 +0000 (+0000) Subject: util: C++ safe. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=431c478df9797c803a6c37b35f09988dc6c8ff7d;p=mesa.git util: C++ safe. --- 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 */