summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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