Fix #1298 - shadowing struct mg_str constructor

This commit is contained in:
Sergey Lyubka committed 2021-07-15 02:18:32 +01:00
1 parent 80fcba91c8
commit 77fae5c562
5 files changed
+9 -4

No files matched your search

+3
View File
@@ -11,6 +11,9 @@ struct mg_str {
#define MG_NULL_STR \
{ NULL, 0 }
// Using macro to avoid shadowing C++ struct constructor, see #1298
#define mg_str(s) mg_str_s(s)
struct mg_str mg_str(const char *s);
struct mg_str mg_str_n(const char *s, size_t n);
int mg_lower(const char *s);