From 2bcb38a868e54ccac74c075a72944600f18a083f Mon Sep 17 00:00:00 2001 From: Sander Mertens Date: Thu, 18 May 2023 14:50:13 -0700 Subject: [PATCH] Add emscripten include to app addon code --- flecs.c | 2 ++ src/addons/app.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/flecs.c b/flecs.c index d3734fe89d..47dd2bd82a 100644 --- a/flecs.c +++ b/flecs.c @@ -44712,6 +44712,8 @@ static ecs_app_desc_t ecs_app_desc; /* Serve REST API from wasm image when running in emscripten */ #ifdef ECS_TARGET_EM +#include + ecs_http_server_t *flecs_wasm_rest_server; EMSCRIPTEN_KEEPALIVE diff --git a/src/addons/app.c b/src/addons/app.c index 87e053d3ce..c10de7c609 100644 --- a/src/addons/app.c +++ b/src/addons/app.c @@ -53,6 +53,8 @@ static ecs_app_desc_t ecs_app_desc; /* Serve REST API from wasm image when running in emscripten */ #ifdef ECS_TARGET_EM +#include + ecs_http_server_t *flecs_wasm_rest_server; EMSCRIPTEN_KEEPALIVE