diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-02-04 11:31:28 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-02-04 11:31:28 -0800 |
| commit | bb15006411d0256a2f476e977ea9748ea553b5a3 (patch) | |
| tree | 7e8b204b0ec859dc76b346ecc0f5fd7dc0a04fd3 /include | |
| parent | daa55213d1bc7367f9eff29b010b563c71fb42cf (diff) | |
| download | nng-bb15006411d0256a2f476e977ea9748ea553b5a3.tar.gz nng-bb15006411d0256a2f476e977ea9748ea553b5a3.tar.bz2 nng-bb15006411d0256a2f476e977ea9748ea553b5a3.zip | |
idhash: Add missing C++ linkage guards.
Diffstat (limited to 'include')
| -rw-r--r-- | include/nng/supplemental/util/idhash.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/nng/supplemental/util/idhash.h b/include/nng/supplemental/util/idhash.h index 7939ab1c..8f691d08 100644 --- a/include/nng/supplemental/util/idhash.h +++ b/include/nng/supplemental/util/idhash.h @@ -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; @@ -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 |
