Mesa (master): util/format_zs: Add C++ include handling

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 10 15:54:51 UTC 2020


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

Author: Gert Wollny <gert.wollny at collabora.com>
Date:   Wed Jun 10 14:34:32 2020 +0200

util/format_zs: Add C++ include handling

Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7477>

---

 src/util/format/u_format_zs.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/util/format/u_format_zs.h b/src/util/format/u_format_zs.h
index 87df7a4ff58..f2b003c6da0 100644
--- a/src/util/format/u_format_zs.h
+++ b/src/util/format/u_format_zs.h
@@ -32,6 +32,9 @@
 
 #include "pipe/p_compiler.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 void
 util_format_s8_uint_unpack_s_8uint(uint8_t *dst_row, unsigned dst_stride, const uint8_t *src_row, unsigned src_stride, unsigned width, unsigned height);
@@ -240,4 +243,9 @@ util_format_x32_s8x24_uint_unpack_s_8uint(uint8_t *dst_row, unsigned dst_stride,
 
 void
 util_format_x32_s8x24_uint_pack_s_8uint(uint8_t *dst_row, unsigned dst_sride, const uint8_t *src_row, unsigned src_stride, unsigned width, unsigned height);
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* U_FORMAT_ZS_H_ */



More information about the mesa-commit mailing list