mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-24 20:21:49 +00:00
Changes to make Mongoose compile on ESP RTOS SDK
PUBLISHED_FROM=863a47416ee5e30f20f6523374ebd510cc022d99
This commit is contained in:
1 parent
6cfc696439
commit
3298030b8e
2 files changed
+10
-7
No files matched your search
+1
-3
@@ -1551,9 +1551,7 @@ void cs_hmac_sha1(const unsigned char *key, size_t keylen,
|
||||
/* Amalgamated: #include "osdep.h" */
|
||||
/* Amalgamated: #include "str_util.h" */
|
||||
|
||||
#if !(_XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L) && \
|
||||
!(__DARWIN_C_LEVEL >= 200809L) && !defined(RTOS_SDK) || \
|
||||
defined(_WIN32)
|
||||
#ifdef _MG_PROVIDE_STRNLEN
|
||||
size_t strnlen(const char *s, size_t maxlen) {
|
||||
size_t l = 0;
|
||||
for (; l < maxlen && s[l] != '\0'; l++) {
|
||||
|
||||
Reference in new issue
Block a user