aboutsummaryrefslogtreecommitdiff
path: root/analyzer/utils/structures
diff options
context:
space:
mode:
Diffstat (limited to 'analyzer/utils/structures')
-rw-r--r--analyzer/utils/structures/heap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/analyzer/utils/structures/heap.h b/analyzer/utils/structures/heap.h
index e960fb7..eb3430b 100644
--- a/analyzer/utils/structures/heap.h
+++ b/analyzer/utils/structures/heap.h
@@ -6,6 +6,8 @@
#define INIT_HEAP_DEPTH 7
#define INIT_HEAP_CAPACITY (1 << INIT_HEAP_DEPTH) - 1
+#ifndef HEAP_DEFINED
+#define HEAP_DEFINED
typedef struct {
void **data;
size_t n_elements;
@@ -14,6 +16,7 @@ typedef struct {
int (*compare)(void *element1, void *element2);
void (*element_cleanup)(void *element);
} Heap;
+#endif
// create a new heap
// params: