diff options
author | Dylan Baker <[email protected]> | 2019-01-28 10:50:31 -0800 |
---|---|---|
committer | Alok Hota <[email protected]> | 2019-01-30 15:12:27 +0000 |
commit | b4986d2e0c629e35afe3bbcc7cdf981ba51a1a28 (patch) | |
tree | 5dced29d0690145aa3beeeeba51105c714c43dc2 /src | |
parent | 45903cddc371f0893730dc7621cb8dc03db153e0 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_screen.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |