anchao opened a new pull request, #6887: URL: https://github.com/apache/incubator-nuttx/pull/6887
## Summary sched: fix visual studio compiler error GCC __attribute__ is not fully compatible with MSVC, In the MSVC environment the programmer typically explicitly exports function/class symbols via the MSVC-specific __declspec(dllexport) modifier. ``` D:\code\incubator-nuttx\arch\sim\src\sim\up_head.c(107,15): error C2143: syntax error : missing ')' before '(' [D:\code\n3\incubator-nuttx\vs2022\up_head.vcxproj] ``` Reference: https://docs.microsoft.com/en-us/cpp/cpp/dllexport-dllimport?view=msvc-170 Signed-off-by: chao.an <anc...@xiaomi.com> ## Impact N/A ## Testing Visual studio + cmake -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org