File tree Expand file tree Collapse file tree 4 files changed +11
-0
lines changed
Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1313* .crf
1414build
1515Debug
16+ .vs
1617rtthread
1718settings
1819documentation /html
Original file line number Diff line number Diff line change 4444 <WarningLevel >Level3</WarningLevel >
4545 <DebugInformationFormat >EditAndContinue</DebugInformationFormat >
4646 <AdditionalOptions >/utf-8 %(AdditionalOptions)</AdditionalOptions >
47+ <LanguageStandard_C >stdc11</LanguageStandard_C >
4748 </ClCompile >
4849 <Link >
4950 <AdditionalDependencies >winmm.lib;Packet.lib;wpcap.lib;%(AdditionalDependencies)</AdditionalDependencies >
Original file line number Diff line number Diff line change @@ -212,14 +212,22 @@ typedef struct msh_cmd_opt
212212 *
213213 * @param[in] command The command associated with these options.
214214 */
215+ #ifdef _MSC_VER
216+ #define CMD_OPTIONS_STATEMENT (command ) static struct msh_cmd_opt command##_msh_options[16];
217+ #else
215218#define CMD_OPTIONS_STATEMENT (command ) static struct msh_cmd_opt command##_msh_options[];
219+ #endif
216220
217221/**
218222 * @brief Starts the definition of command options for a specific command.
219223 *
220224 * @param[in] command The command these options are associated with.
221225 */
226+ #ifdef _MSC_VER
227+ #define CMD_OPTIONS_NODE_START (command ) static struct msh_cmd_opt command##_msh_options[16] = {
228+ #else
222229#define CMD_OPTIONS_NODE_START (command ) static struct msh_cmd_opt command##_msh_options[] = {
230+ #endif
223231
224232/**
225233 * @brief Defines a single command option.
Original file line number Diff line number Diff line change 3232 * 2023-10-17 ChuShicheng Modify the timing of clearing RT_THREAD_STAT_YIELD flag bits
3333 */
3434
35+ #define __RT_IPC_SOURCE__
3536#include <rtthread.h>
3637#include <rthw.h>
3738
You can’t perform that action at this time.
0 commit comments