summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-03-10 13:28:53 +1100
committerTimothy Arceri <[email protected]>2017-03-13 09:50:26 +1100
commit13d69a85197f6bd57a12e1f9c5ccb6ae0b5431ce (patch)
treec3630067f5ea9950dab99a8b4c7c01b45babdb24 /src
parentdf1d5fc442188343ae885c89b8601476a9988bba (diff)
util/u_queue: make u_queue accessible to cpp
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/util/u_queue.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/u_queue.h b/src/util/u_queue.h
index 0073890cf3c..4aec1f20471 100644
--- a/src/util/u_queue.h
+++ b/src/util/u_queue.h
@@ -38,6 +38,10 @@
#include "util/list.h"
#include "util/u_thread.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Job completion fence.
* Put this into your job structure.
*/
@@ -106,4 +110,8 @@ util_queue_fence_is_signalled(struct util_queue_fence *fence)
return fence->signalled != 0;
}
+#ifdef __cplusplus
+}
+#endif
+
#endif