diff options
author | Lee Salzman <[email protected]> | 2024-06-26 13:08:39 -0400 |
---|---|---|
committer | Lee Salzman <[email protected]> | 2024-06-26 13:08:39 -0400 |
commit | 7083138fd401faa391c4f829a86b50fdb9c5c727 (patch) | |
tree | 71c03b3020f06e1171c37796321d76412a182228 /include/enet/list.h | |
parent | 29260f79cf15f8ca2979c71a050e554824b21e6d (diff) | |
download | enet-7083138fd401faa391c4f829a86b50fdb9c5c727.tar.gz enet-7083138fd401faa391c4f829a86b50fdb9c5c727.zip |
fix extern "C" usage
Diffstat (limited to 'include/enet/list.h')
-rw-r--r-- | include/enet/list.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/enet/list.h b/include/enet/list.h index d7b2600..076e886 100644 --- a/include/enet/list.h +++ b/include/enet/list.h @@ -20,6 +20,11 @@ typedef struct _ENetList ENetListNode sentinel; } ENetList; +#ifdef __cplusplus +extern "C" +{ +#endif + extern void enet_list_clear (ENetList *); extern ENetListIterator enet_list_insert (ENetListIterator, void *); @@ -28,6 +33,10 @@ extern ENetListIterator enet_list_move (ENetListIterator, void *, void *); extern size_t enet_list_size (ENetList *); +#ifdef __cplusplus +} +#endif + #define enet_list_begin(list) ((list) -> sentinel.next) #define enet_list_end(list) (& (list) -> sentinel) |