Fix in standard function library: forgot static linkage for inline __str_cmp() default tip
authorEdouard Tisserant
Mon, 06 Jul 2020 13:29:08 +0200
changeset 1093 30adcffcf8e6
parent 1092 220ddcce851d
Fix in standard function library: forgot static linkage for inline __str_cmp()
lib/C/iec_std_functions.h
--- a/lib/C/iec_std_functions.h	Tue Jun 30 11:23:37 2020 +0200
+++ b/lib/C/iec_std_functions.h	Mon Jul 06 13:29:08 2020 +0200
@@ -890,7 +890,7 @@
 __iec_(TIME)
 #undef __iec_
 
-inline int __str_cmp(uint8_t* str1, __strlen_t len1, uint8_t* str2, __strlen_t len2) { 
+static inline int __str_cmp(uint8_t* str1, __strlen_t len1, uint8_t* str2, __strlen_t len2) { 
     int cmp = memcmp(str1, str2, len1 < len2 ? len1 : len2);
     return cmp ? cmp : (len1 > len2 ? 1 : (len1 < len2 ? - 1 : 0));
 }