From 77a62ceac5f1d3942b85b21d86f6b4d25d686190 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Tue, 20 Mar 2012 13:46:24 -0700 Subject: [PATCH] MinGW does not have sys/cdefs.h Change-Id: I5cafafce8488d355ed3865a9fd1173fbebbc5b03 --- include/cutils/list.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/cutils/list.h b/include/cutils/list.h index 8190219db..3881fc9db 100644 --- a/include/cutils/list.h +++ b/include/cutils/list.h @@ -18,9 +18,10 @@ #define _CUTILS_LIST_H_ #include -#include -__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