Skip to content

Commit

Permalink
Add emscripten include to app addon code
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed May 18, 2023
1 parent a91566b commit 2bcb38a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <emscripten.h>

ecs_http_server_t *flecs_wasm_rest_server;

EMSCRIPTEN_KEEPALIVE
Expand Down
2 changes: 2 additions & 0 deletions src/addons/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <emscripten.h>

ecs_http_server_t *flecs_wasm_rest_server;

EMSCRIPTEN_KEEPALIVE
Expand Down

0 comments on commit 2bcb38a

Please sign in to comment.