gallium: wrap u_screen in extern "C" for c++
authorDylan Baker <dylan@pnwbakers.com>
Mon, 28 Jan 2019 18:50:31 +0000 (10:50 -0800)
committerAlok 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

index 65afb277ef3b1a6558087fab879034fca96e4598..3952a11f2ca395f99c0c487ec2214b12373d25a0 100644 (file)
 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