Mesa (staging/19.0): gallium: wrap u_screen in extern "C" for c++
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 4 21:49:26 UTC 2019
Module: Mesa
Branch: staging/19.0
Commit: 7379a9b44f5448ca077e9f24f2e2172288c13a31
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7379a9b44f5448ca077e9f24f2e2172288c13a31
Author: Dylan Baker <dylan at pnwbakers.com>
Date: Mon Jan 28 10:50:31 2019 -0800
gallium: wrap u_screen in extern "C" for c++
Some drivers (notabily SWR) are written in C++, and as such they need
access to C headers with extern "C". So lets add that.
---
src/gallium/auxiliary/util/u_screen.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_screen.h b/src/gallium/auxiliary/util/u_screen.h
index 65afb277ef3..3952a11f2ca 100644
--- a/src/gallium/auxiliary/util/u_screen.h
+++ b/src/gallium/auxiliary/util/u_screen.h
@@ -24,6 +24,14 @@
struct pipe_screen;
enum pipe_cap;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int
u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
enum pipe_cap param);
+
+#ifdef __cplusplus
+};
+#endif
More information about the mesa-commit
mailing list