]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
list: Add missing include guards.
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 29 Sep 2020 00:33:14 +0000 (00:33 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 29 Sep 2020 00:33:14 +0000 (00:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12959 d7cf8633-e32d-0410-b094-e92efae38249

com_list.h
host.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
diff --git a/host.h b/host.h
index 15b7ab93f6f9335730ac3116166b52bef020b9cd..591e6e8aa3e8eec3ddca1cb3e0c1f5aea9dc32b7 100644 (file)
--- a/host.h
+++ b/host.h
@@ -1,3 +1,6 @@
+#ifndef HOST_H
+#define HOST_H
+
 typedef enum host_state_e
 {
        host_shutdown,