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.
pull/17/merge
Robert Haas 9 years ago
parent 565903af47
commit ac8eb972f2
  1. 3
      src/include/lib/simplehash.h

@ -88,8 +88,11 @@
#define SH_ENTRY_HASH SH_MAKE_NAME(entry_hash)
/* Allocation function for hash table elements */
#ifndef SIMPLEHASH_TYPEDEFS
#define SIMPLEHASH_TYPEDEFS
typedef void *(*simplehash_allocate) (Size size, void *args);
typedef void (*simplehash_free) (void *pointer, void *args);
#endif
/* generate forward declarations necessary to use the hash table */
#ifdef SH_DECLARE

Loading…
Cancel
Save