summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/rtdbg.h2
-rw-r--r--include/rtthread.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/rtdbg.h b/include/rtdbg.h
index 6eb8ceb221..77382c656b 100644
--- a/include/rtdbg.h
+++ b/include/rtdbg.h
@@ -42,7 +42,7 @@
#define DBG_COLOR
#endif
-#if defined(RT_USING_ULOG) && defined(DBG_ENABLE)
+#if defined(RT_USING_ULOG)
/* using ulog compatible with rtdbg */
#include <ulog.h>
#else
diff --git a/include/rtthread.h b/include/rtthread.h
index d2356b8eda..e66e30fddb 100644
--- a/include/rtthread.h
+++ b/include/rtthread.h
@@ -516,6 +516,7 @@ void *rt_memcpy(void *dest, const void *src, rt_ubase_t n);
rt_int32_t rt_strncmp(const char *cs, const char *ct, rt_ubase_t count);
rt_int32_t rt_strcmp(const char *cs, const char *ct);
rt_size_t rt_strlen(const char *src);
+rt_size_t rt_strnlen(const char *s, rt_ubase_t maxlen);
char *rt_strdup(const char *s);
#if defined(__CC_ARM) || defined(__CLANG_ARM)
/* leak strdup interface */