summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorGeorge Kyriazis <[email protected]>2017-02-15 20:54:43 -0600
committerTim Rowley <[email protected]>2017-02-16 18:22:27 -0600
commitd4b4a511f6dbaa69ba1f9d2e326d64b5713c5b4c (patch)
tree516d9de4206a8d387dc106893dc13e1bd27723c2 /src/gallium/auxiliary
parenta3ab09f90f83e09578985fbac39e39121d084b75 (diff)
gallium: add extern "C" guards
Added extern "C" __cplusplus guards on headers that did not have them. Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_transfer.h8
-rw-r--r--src/gallium/auxiliary/util/u_upload_mgr.h7
2 files changed, 15 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_transfer.h b/src/gallium/auxiliary/util/u_transfer.h
index ab787abdce3..14084983daf 100644
--- a/src/gallium/auxiliary/util/u_transfer.h
+++ b/src/gallium/auxiliary/util/u_transfer.h
@@ -10,6 +10,10 @@
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
diff --git a/src/gallium/auxiliary/util/u_upload_mgr.h b/src/gallium/auxiliary/util/u_upload_mgr.h
index 633291e2ce3..45382917021 100644
--- a/src/gallium/auxiliary/util/u_upload_mgr.h
+++ b/src/gallium/auxiliary/util/u_upload_mgr.h
@@ -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