summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorlatercomer <[email protected]>2025-03-16 01:06:58 +0800
committerRbb666 <[email protected]>2025-03-17 16:45:59 +0800
commit76c2f2d77f06327b5a6d679d59d06443d65299ca (patch)
tree07cccaac899216a399e55f6d9df91fe3c84c3cbf /components
parentb0b40ed45c8d92ced70b236d45cf873fae4a6665 (diff)
解决bps/simulator无法在vs2019环境下编译
Signed-off-by: latercomer <[email protected]>
Diffstat (limited to 'components')
-rw-r--r--components/finsh/finsh.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/finsh/finsh.h b/components/finsh/finsh.h
index 5c97ccd731..d9ddec5983 100644
--- a/components/finsh/finsh.h
+++ b/components/finsh/finsh.h
@@ -212,14 +212,22 @@ typedef struct msh_cmd_opt
*
* @param[in] 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
/**
* @brief Starts the definition of command options for a specific command.
*
* @param[in] 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
/**
* @brief Defines a single command option.