MinGW does not have sys/cdefs.h
Change-Id: I5cafafce8488d355ed3865a9fd1173fbebbc5b03
This commit is contained in:
parent
e888674074
commit
77a62ceac5
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue