acassis commented on PR #14604:
URL: https://github.com/apache/nuttx/pull/14604#issuecomment-2453008648
> I don't understand the cause for the MSVC errors.
It is an issue introduced by someone else while Windows build was disabled.
@wengzhe please helps to fix it:
```
D:\a\nuttx\nuttx\sources\nuttx\include\sys\socket.h(330,25): error C2079:
'packed' uses undefined struct '__attribute__'
[D:\a\nuttx\nuttx\sources\nuttx\vs2022\sim_head.vcxproj]
(compiling source file '../arch/sim/src/sim/sim_head.c')
D:\a\nuttx\nuttx\sources\nuttx\include\sys\socket.h(331,3): error C2143:
syntax error: missing ';' before '{'
[D:\a\nuttx\nuttx\sources\nuttx\vs2022\sim_head.vcxproj]
(compiling source file '../arch/sim/src/sim/sim_head.c')
D:\a\nuttx\nuttx\sources\nuttx\include\sys\socket.h(331,3): error C2059:
syntax error: '{' [D:\a\nuttx\nuttx\sources\nuttx\vs2022\sim_head.vcxproj]
(compiling source file '../arch/sim/src/sim/sim_head.c')
D:\a\nuttx\nuttx\sources\nuttx\include\sys\socket.h(341,1): error C2059:
syntax error: '}' [D:\a\nuttx\nuttx\sources\nuttx\vs2022\sim_head.vcxproj]
(compiling source file '../arch/sim/src/sim/sim_head.c')
D:\a\nuttx\nuttx\sources\nuttx\include\sys\socket.h(330,25): error C2079:
'packed' uses undefined struct '__attribute__'
[D:\a\nuttx\nuttx\sources\nuttx\vs2022\sim_head.vcxproj]
(compiling source file '../arch/sim/src/sim/sim_doirq.c')
D:\a\nuttx\nuttx\sources\nuttx\include\sys\socket.h(331,3): error C2143:
syntax error: missing ';' before '{'
[D:\a\nuttx\nuttx\sources\nuttx\vs2022\sim_head.vcxproj]
(compiling source file '../arch/sim/src/sim/sim_doirq.c')
D:\a\nuttx\nuttx\sources\nuttx\include\sys\socket.h(331,3): error C2059:
syntax error: '{' [D:\a\nuttx\nuttx\sources\nuttx\vs2022\sim_head.vcxproj]
(compiling source file '../arch/sim/src/sim/sim_doirq.c')
D:\a\nuttx\nuttx\sources\nuttx\include\sys\socket.h(341,1): error C2059:
syntax error: '}' [D:\a\nuttx\nuttx\sources\nuttx\vs2022\sim_head.vcxproj]
(compiling source file '../arch/sim/src/sim/sim_doirq.c')
Error: Process completed with exit code 1.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]