]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - com_list.h
list: Add missing include guards.
[xonotic/darkplaces.git] / com_list.h
index 8da053c3f1f4f25eea0cbacf41c7d239a00701d1..8f31dc413d377bf6ed834d8f88cdf43eba0eecaf 100644 (file)
@@ -20,6 +20,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 // com_list.c - generic doubly linked list interface, inspired by Linux list.h
 
+#ifndef LIST_H
+#define LIST_H
+
 #include <stddef.h>
 
 typedef struct llist_s
@@ -53,4 +56,6 @@ void List_Splice(const llist_t *list, llist_t *head);
 void List_Splice_Tail(const llist_t *list, llist_t *head);
 qbool List_IsFirst(llist_t *list, llist_t *start);
 qbool List_IsLast(llist_t *list, llist_t *start);
-qbool List_IsEmpty(const llist_t *list);
\ No newline at end of file
+qbool List_IsEmpty(const llist_t *list);
+
+#endif