MinGW does not have sys/cdefs.h

Change-Id: I5cafafce8488d355ed3865a9fd1173fbebbc5b03
This commit is contained in:
Kenny Root 2012-03-20 13:46:24 -07:00
parent e888674074
commit 77a62ceac5
1 changed files with 6 additions and 3 deletions

View File

@ -18,9 +18,10 @@
#define _CUTILS_LIST_H_
#include <stddef.h>
#include <sys/cdefs.h>
__BEGIN_DECLS
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
struct listnode
{
@ -51,6 +52,8 @@ void list_remove(struct listnode *item);
#define list_head(list) ((list)->next)
#define list_tail(list) ((list)->prev)
__END_DECLS
#ifdef __cplusplus
};
#endif /* __cplusplus */
#endif