diff options
Diffstat (limited to 'lib/pqueue.h')
-rw-r--r-- | lib/pqueue.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/pqueue.h b/lib/pqueue.h index 53e5aa833..032ee9db4 100644 --- a/lib/pqueue.h +++ b/lib/pqueue.h @@ -21,6 +21,10 @@ #ifndef _ZEBRA_PQUEUE_H #define _ZEBRA_PQUEUE_H +#ifdef __cplusplus +extern "C" { +#endif + struct pqueue { void **array; int array_size; @@ -43,4 +47,8 @@ extern void pqueue_remove(void *data, struct pqueue *queue); extern void trickle_down(int index, struct pqueue *queue); extern void trickle_up(int index, struct pqueue *queue); +#ifdef __cplusplus +} +#endif + #endif /* _ZEBRA_PQUEUE_H */ |