Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitac8eb97

Browse files
committed
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 reportfrom Jeff Janes.
1 parent565903a commitac8eb97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/include/lib/simplehash.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,11 @@
8888
#defineSH_ENTRY_HASH SH_MAKE_NAME(entry_hash)
8989

9090
/* Allocation function for hash table elements */
91+
#ifndefSIMPLEHASH_TYPEDEFS
92+
#defineSIMPLEHASH_TYPEDEFS
9193
typedefvoid*(*simplehash_allocate) (Sizesize,void*args);
9294
typedefvoid (*simplehash_free) (void*pointer,void*args);
95+
#endif
9396

9497
/* generate forward declarations necessary to use the hash table */
9598
#ifdefSH_DECLARE

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp