Skip to content
Snippets Groups Projects
Commit ac8eb972 authored by Robert Haas's avatar Robert Haas
Browse files

Avoid redefining simplehash_allocate/simplehash_free.

There's no generic guard against multiple inclusion in this file,
for good reason.  But these typedefs need one, as per a report
from Jeff Janes.
parent 565903af
No related branches found
No related tags found
No related merge requests found
...@@ -88,8 +88,11 @@ ...@@ -88,8 +88,11 @@
#define SH_ENTRY_HASH SH_MAKE_NAME(entry_hash) #define SH_ENTRY_HASH SH_MAKE_NAME(entry_hash)
/* Allocation function for hash table elements */ /* Allocation function for hash table elements */
#ifndef SIMPLEHASH_TYPEDEFS
#define SIMPLEHASH_TYPEDEFS
typedef void *(*simplehash_allocate) (Size size, void *args); typedef void *(*simplehash_allocate) (Size size, void *args);
typedef void (*simplehash_free) (void *pointer, void *args); typedef void (*simplehash_free) (void *pointer, void *args);
#endif
/* generate forward declarations necessary to use the hash table */ /* generate forward declarations necessary to use the hash table */
#ifdef SH_DECLARE #ifdef SH_DECLARE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment