diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-01-28 10:50:31 -0800 |
---|---|---|
committer | Alok Hota <alok.hota@intel.com> | 2019-06-04 13:42:33 -0500 |
commit | 7379a9b44f5448ca077e9f24f2e2172288c13a31 (patch) | |
tree | 48dc006dc262ece63837c59d373c8755f50f11ba | |
parent | 24a5b56d698b622e44fcde3a1d28d46b6af1fd9e (diff) | |
download | mesa-7379a9b44f5448ca077e9f24f2e2172288c13a31.tar.gz |
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.
-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 |