gallium: add extern "C" guards
authorGeorge Kyriazis <george.kyriazis@intel.com>
Thu, 16 Feb 2017 02:54:43 +0000 (20:54 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 17 Feb 2017 00:22:27 +0000 (18:22 -0600)
Added extern "C" __cplusplus guards on headers that did not have them.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/auxiliary/util/u_transfer.h
src/gallium/auxiliary/util/u_upload_mgr.h

index ab787abdce39fd861c197bab1c21832cbb87479b..14084983daf984d1dde97f42756670150d2f1231 100644 (file)
 struct pipe_context;
 struct winsys_handle;
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 boolean u_default_resource_get_handle(struct pipe_screen *screen,
                                       struct pipe_resource *resource,
                                       struct winsys_handle *handle);
@@ -95,4 +99,8 @@ void u_transfer_flush_region_vtbl( struct pipe_context *pipe,
 void u_transfer_unmap_vtbl( struct pipe_context *rm_ctx,
                             struct pipe_transfer *transfer );
 
+#ifdef __cplusplus
+} // extern "C" {
+#endif
+
 #endif
index 633291e2ce3bb480023ed28aca3d8260c87af5e7..45382917021bf9565271def87fe20f34a50baa28 100644 (file)
@@ -38,6 +38,9 @@
 struct pipe_context;
 struct pipe_resource;
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 /**
  * Create the upload manager.
@@ -109,4 +112,8 @@ void u_upload_data(struct u_upload_mgr *upload,
                    unsigned *out_offset,
                    struct pipe_resource **outbuf);
 
+#ifdef __cplusplus
+} // extern "C" {
+#endif
+
 #endif