Skip to content

Commit

Permalink
list: Add missing include guards.
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12959 d7cf8633-e32d-0410-b094-e92efae38249
  • Loading branch information
cloudwalk committed Sep 29, 2020
1 parent 75bb9b3 commit 1bbc504
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion com_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
qbool List_IsEmpty(const llist_t *list);

#endif
3 changes: 3 additions & 0 deletions host.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef HOST_H
#define HOST_H

typedef enum host_state_e
{
host_shutdown,
Expand Down

0 comments on commit 1bbc504

Please sign in to comment.