From 5f7b80b4e543edd045785a5510ae480baeed84f8 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 14 May 2025 17:14:35 +0200 Subject: [PATCH] hashmap: Make sure Iterator struct is named Otherwise we can't forward declare it. Split out of #37344 --- src/basic/hashmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/hashmap.h b/src/basic/hashmap.h index f7e02c814e7..4aa8fbb0038 100644 --- a/src/basic/hashmap.h +++ b/src/basic/hashmap.h @@ -38,7 +38,7 @@ typedef struct IteratedCache IteratedCache; /* Caches the iterated order of on /* Ideally the Iterator would be an opaque struct, but it is instantiated * by hashmap users, so the definition has to be here. Do not use its fields * directly. */ -typedef struct { +typedef struct Iterator { const void *next_key; /* expected value of that entry's key pointer */ unsigned idx; /* index of an entry to be iterated next */ #if ENABLE_DEBUG_HASHMAP -- 2.47.3