diff options
Diffstat (limited to 'lib/freebsd-queue.h')
-rw-r--r-- | lib/freebsd-queue.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/freebsd-queue.h b/lib/freebsd-queue.h index 4fcfe85a6..793cfff8d 100644 --- a/lib/freebsd-queue.h +++ b/lib/freebsd-queue.h @@ -33,6 +33,10 @@ #ifndef _SYS_QUEUE_H_ #define _SYS_QUEUE_H_ +#ifdef __cplusplus +extern "C" { +#endif + /* * This file defines four types of data structures: singly-linked lists, * singly-linked tail queues, lists and tail queues. @@ -675,4 +679,8 @@ struct qm_trace { (head2)->tqh_last = &(head2)->tqh_first; \ } while (0) +#ifdef __cplusplus +} +#endif + #endif /* !_SYS_QUEUE_H_ */ |