mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-05 15:23:03 +08:00
解决bps/simulator无法在vs2019环境下编译
Signed-off-by: latercomer <latercomer@qq.com>
This commit is contained in:
@@ -196,13 +196,21 @@ typedef struct msh_cmd_opt
|
||||
* Declares a static array of command options for a specific command.
|
||||
* @param command The command associated with these options.
|
||||
*/
|
||||
#ifdef _MSC_VER
|
||||
#define CMD_OPTIONS_STATEMENT(command) static struct msh_cmd_opt command##_msh_options[16];
|
||||
#else
|
||||
#define CMD_OPTIONS_STATEMENT(command) static struct msh_cmd_opt command##_msh_options[];
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Starts the definition of command options for a specific command.
|
||||
* @param command The command these options are associated with.
|
||||
*/
|
||||
#ifdef _MSC_VER
|
||||
#define CMD_OPTIONS_NODE_START(command) static struct msh_cmd_opt command##_msh_options[16] = {
|
||||
#else
|
||||
#define CMD_OPTIONS_NODE_START(command) static struct msh_cmd_opt command##_msh_options[] = {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Defines a single command option.
|
||||
|
||||
Reference in New Issue
Block a user