summaryrefslogtreecommitdiff
path: root/h/llist.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-02 19:25:17 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-02 19:25:17 +0200
commitc2ca7be5a751879159f3cb591a64bb9568b79762 (patch)
tree04e38d4f4a2aad4d789bda0a65b7abb80a3439a2 /h/llist.h
parent45c152c326d87478fbf41714b4b8e2f7b57a282b (diff)
parent3db384424bd7398ffbb7a355cab8f15f3add009f (diff)
Updated version 1.9.1+repack from 'upstream/1.9.1+repack'
with Debian dir 98a996367aa69ae41accf9c6d369f600bc94de80
Diffstat (limited to 'h/llist.h')
-rw-r--r--h/llist.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/h/llist.h b/h/llist.h
index 1af31bf..0edd06f 100644
--- a/h/llist.h
+++ b/h/llist.h
@@ -1,9 +1,13 @@
-/* A set of linked list utilities, implimented as macros. */
+/* A set of doubly linked list utilities, implimented as macros. */
/* Copyright 1995, 2000 Graeme W. Gill */
#ifndef _LLIST_H_
-/* A link list structure */
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
+/* A doubly link list structure */
#define LINKSTRUCT(obj) \
struct { \
obj *fwd; /* Forward link */ \
@@ -87,6 +91,10 @@ struct { \
#define IS_ONE_ITEM(objp) \
((objp) == (objp)->_llistp.fwd)
+#ifdef __cplusplus
+ }
+#endif
+
#define _LLIST_H_
#endif /* _LLIST_H_ */