From 1614e7ba8db0dc7847b0493d01105140b9437b03 Mon Sep 17 00:00:00 2001
From: Deomid Ryabkov <rojer@cesanta.com>
Date: Fri, 13 Apr 2018 17:34:03 +0100
Subject: [PATCH] Restore FFI-ability of struct mg_str

mgos_dlsym needs to include mg_str for ffi_exports to be able to use it

PUBLISHED_FROM=a2dd167c8e8f9e9b7316a856f19a4603080c3632
---
 mongoose.c | 1 +
 mongoose.h | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/mongoose.c b/mongoose.c
index cd24eff5b..18c1b6429 100644
--- a/mongoose.c
+++ b/mongoose.c
@@ -1636,6 +1636,7 @@ void mbuf_remove(struct mbuf *mb, size_t n) {
 
 /* Amalgamated: #include "common/mg_mem.h" */
 /* Amalgamated: #include "common/mg_str.h" */
+/* Amalgamated: #include "common/platform.h" */
 
 #include <stdlib.h>
 #include <string.h>
diff --git a/mongoose.h b/mongoose.h
index d907c97ee..43cfe12e4 100644
--- a/mongoose.h
+++ b/mongoose.h
@@ -2095,8 +2095,6 @@ double cs_timegm(const struct tm *tm);
 
 #include <stddef.h>
 
-/* Amalgamated: #include "common/platform.h" */
-
 #ifdef __cplusplus
 extern "C" {
 #endif
-- 
GitLab