projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45903cd
)
gallium: wrap u_screen in extern "C" for c++
author
Dylan Baker
<dylan@pnwbakers.com>
Mon, 28 Jan 2019 18:50:31 +0000
(10:50 -0800)
committer
Alok Hota
<alok.hota@intel.com>
Wed, 30 Jan 2019 15:12:27 +0000
(15:12 +0000)
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
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_screen.h
b/src/gallium/auxiliary/util/u_screen.h
index 65afb277ef3b1a6558087fab879034fca96e4598..3952a11f2ca395f99c0c487ec2214b12373d25a0 100644
(file)
--- 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