diff options
Diffstat (limited to 'newlib/libc/search/hash.c')
-rw-r--r-- | newlib/libc/search/hash.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/newlib/libc/search/hash.c b/newlib/libc/search/hash.c index 498ee3fcc..5bd4fb77e 100644 --- a/newlib/libc/search/hash.c +++ b/newlib/libc/search/hash.c @@ -53,7 +53,7 @@ static char sccsid[] = "@(#)hash.c 8.9 (Berkeley) 6/16/94"; #include <assert.h> #endif -#include <db.h> +#include "db_local.h" #include "hash.h" #include "page.h" #include "extern.h" @@ -77,6 +77,10 @@ static void swap_header(HTAB *); static void swap_header_copy(HASHHDR *, HASHHDR *); #endif +/* Macros for min/max. */ +#define MIN(a,b) (((a)<(b))?(a):(b)) +#define MAX(a,b) (((a)>(b))?(a):(b)) + /* Fast arithmetic, relying on powers of 2, */ #define MOD(x, y) ((x) & ((y) - 1)) |