Skip to content

Commit

Permalink
idhash: Add missing C++ linkage guards.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Feb 4, 2024
1 parent daa5521 commit bb15006
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/nng/supplemental/util/idhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#ifndef NNG_SUPPLEMENTAL_UTIL_IDHASH_H
#define NNG_SUPPLEMENTAL_UTIL_IDHASH_H

#ifdef __cplusplus
extern "C" {
#endif

#include <nng/nng.h>

typedef struct nng_id_map_s nng_id_map;
Expand All @@ -24,4 +28,8 @@ NNG_DECL int nng_id_set(nng_id_map *, uint64_t, void *);
NNG_DECL int nng_id_alloc(nng_id_map *, uint64_t *, void *);
NNG_DECL int nng_id_remove(nng_id_map *, uint64_t);

#ifdef __cplusplus
}
#endif

#endif // NNG_SUPPLEMENTAL_IDHASH_IDHASH_H

0 comments on commit bb15006

Please sign in to comment.