Create bacnet strnlen and stricmp to avoid libc compiler problems
This commit is contained in:
@@ -77,17 +77,6 @@ __inline int c99_snprintf(char *outBuf, size_t size, const char *format, ...)
|
||||
return count;
|
||||
}
|
||||
#endif
|
||||
#elif defined(__ZEPHYR__)
|
||||
#include <strings.h>
|
||||
/* For some reason my Zephyr build for non-native targets does not
|
||||
* see a definition for strnlen(), but it is visible in when
|
||||
* compiling for native_posix. This results in the compiler
|
||||
* emitting a warning, forcing Zephyr's sanitycheck() script to stop.
|
||||
* Until this is chased down, the definition is being provided here.
|
||||
*/
|
||||
#if !CONFIG_NATIVE_APPLICATION
|
||||
size_t strnlen(const char *, size_t);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* some common min/max as defined in windef.h */
|
||||
|
||||
Reference in New Issue
Block a user