X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fhash.h;h=de96f888128885ff419769a12a53a67e6b054d1b;hb=a5a8005b2d89712e124ab7295165a3e229abdad5;hp=182a1c95d5212ddb271f423a9e469e1cdb1ae6c0;hpb=196806f90f40fcc0cf727abd4bed6bc5aefff5ff;p=meshlink diff --git a/src/hash.h b/src/hash.h index 182a1c95..de96f888 100644 --- a/src/hash.h +++ b/src/hash.h @@ -1,6 +1,9 @@ +#ifndef MESHLINK_HASH_H +#define MESHLINK_HASH_H + /* hash.h -- header file for hash.c - Copyright (C) 2014 Guus Sliepen + Copyright (C) 2014, 2017 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,9 +20,6 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __MESHLINK_HASH_H__ -#define __MESHLINK_HASH_H__ - typedef struct hash_t { size_t n; size_t size; @@ -38,4 +38,4 @@ extern void *hash_search_or_insert(hash_t *, const void *key, const void *value) extern void hash_clear(hash_t *); extern void hash_resize(hash_t *, size_t n); -#endif /* __MESHLINK_HASH_H__ */ +#endif