浏览代码

Provide strcmp_P where needed (#18103)

ellensp 5 年前
父节点
当前提交
9bfdc88e52
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 10 次插入0 次删除
  1. 5
    0
      Marlin/src/HAL/LINUX/HAL.h
  2. 5
    0
      Marlin/src/HAL/LPC1768/HAL.h

+ 5
- 0
Marlin/src/HAL/LINUX/HAL.h 查看文件

106
 FORCE_INLINE static void DELAY_CYCLES(uint64_t x) {
106
 FORCE_INLINE static void DELAY_CYCLES(uint64_t x) {
107
   Clock::delayCycles(x);
107
   Clock::delayCycles(x);
108
 }
108
 }
109
+
110
+// Add strcmp_P if missing
111
+#ifndef strcmp_P
112
+  #define strcmp_P(a, b) strcmp((a), (b))
113
+#endif

+ 5
- 0
Marlin/src/HAL/LPC1768/HAL.h 查看文件

221
 // Reset source
221
 // Reset source
222
 void HAL_clear_reset_source(void);
222
 void HAL_clear_reset_source(void);
223
 uint8_t HAL_get_reset_source(void);
223
 uint8_t HAL_get_reset_source(void);
224
+
225
+// Add strcmp_P if missing
226
+#ifndef strcmp_P
227
+  #define strcmp_P(a, b) strcmp((a), (b))
228
+#endif

正在加载...
取消
保存