Cleanup: remove private babeltrace.h
[babeltrace.git] / src / lib / prio-heap / prio-heap.h
index 8ea51bc148adbfb355cd99cd6dd9e4f558508a05..bbf1b3bfe0c13e01c1e76e0d3bdc77819fc89016 100644 (file)
@@ -27,7 +27,7 @@
  */
 
 #include <unistd.h>
-#include "common/babeltrace.h"
+#include "common/macros.h"
 
 struct ptr_heap {
        size_t len, alloc_len;
@@ -54,7 +54,7 @@ void check_heap(const struct ptr_heap *heap)
 static inline void *bt_heap_maximum(const struct ptr_heap *heap)
 {
        check_heap(heap);
-       return likely(heap->len) ? heap->ptrs[0] : NULL;
+       return G_LIKELY(heap->len) ? heap->ptrs[0] : NULL;
 }
 
 /**
This page took 0.023174 seconds and 4 git commands to generate.