util/u_queue: make u_queue accessible to cpp
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 10 Mar 2017 02:28:53 +0000 (13:28 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 12 Mar 2017 22:50:26 +0000 (09:50 +1100)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/util/u_queue.h

index 0073890cf3c1f03aa4e45a6fb722aca27d4a7d1d..4aec1f2047114409b1495fa0bb44bc5844553b77 100644 (file)
 #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