This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit cedb7f97def2a7279298310b6da5a1e988823e3a
Author: chenxiaoyi <[email protected]>
AuthorDate: Mon Jun 24 18:19:23 2024 +0800

    compiler.h: fix windows netfilter build error
    
    nuttx\net\netfilter\ipt_sockopt.c(389,7): error C2059: syntax error: ')'
    nuttx\net\netfilter\ip6t_sockopt.c(387,7): error C2059: syntax error: ')'
    
    Co-authored-by: chenxiaoyi <[email protected]>
    Co-authored-by: xuxin19 <[email protected]>
---
 include/nuttx/compiler.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/nuttx/compiler.h b/include/nuttx/compiler.h
index e637f5c533..eb928d4c74 100644
--- a/include/nuttx/compiler.h
+++ b/include/nuttx/compiler.h
@@ -936,6 +936,8 @@
 #  define syslog_like(a, b)
 #  define scanf_like(a, b)
 #  define strftime_like(a)
+#  define object_size(o, t) ((size_t)-1)
+#  define typeof __typeof__
 
 #  define FAR
 #  define NEAR

Reply via email to