aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Liodden <[email protected]>2017-12-04 11:11:08 +0100
committerErik Liodden <[email protected]>2017-12-04 11:11:08 +0100
commit09a16b23b7b6cfbd98717e13867635d88df02159 (patch)
treec9b4939b069fc40a363264c82a2d8cea70783eff
parente8fd7d216688880a5cfefb249c68f3ac30cbd00f (diff)
downloadalgdat-09a16b23b7b6cfbd98717e13867635d88df02159.tar.gz
structure.h is needed for heap_sort
-rw-r--r--sort.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sort.h b/sort.h
index eba956f..5aac322 100644
--- a/sort.h
+++ b/sort.h
@@ -16,6 +16,8 @@
#ifndef SORT_H
#define SORT_H
+#include "structure.h"
+
void insertion_sort(void *base, size_t nel, size_t width,
int (*compar)(const void *, const void *));
void heap_sort(void *base, size_t nel, size_t width,