Browse Source

Provide strcmp_P where needed (#18103)

ellensp 5 years ago
parent
commit
9bfdc88e52
No account linked to committer's email address
2 changed files with 10 additions and 0 deletions
  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 View File

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 View File

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

Loading…
Cancel
Save