mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-10 16:31:44 +00:00
Fix #1298 - shadowing struct mg_str constructor
This commit is contained in:
1 parent
80fcba91c8
commit
77fae5c562
5 files changed
+9
-4
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user