From 1bbc50467cd7e81d060e639330d0e1b3b56c1baa Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Tue, 29 Sep 2020 00:33:14 +0000 Subject: [PATCH] list: Add missing include guards. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12959 d7cf8633-e32d-0410-b094-e92efae38249 --- com_list.h | 7 ++++++- host.h | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/com_list.h b/com_list.h index 8da053c3..8f31dc41 100644 --- a/com_list.h +++ b/com_list.h @@ -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 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 15b7ab93..591e6e8a 100644 --- a/host.h +++ b/host.h @@ -1,3 +1,6 @@ +#ifndef HOST_H +#define HOST_H + typedef enum host_state_e { host_shutdown, -- 2.39.2