summaryrefslogtreecommitdiffstats
path: root/platform/web/os_web.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/web/os_web.h')
-rw-r--r--platform/web/os_web.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/platform/web/os_web.h b/platform/web/os_web.h
index b9570f9ca1..cb1897a2fe 100644
--- a/platform/web/os_web.h
+++ b/platform/web/os_web.h
@@ -33,6 +33,8 @@
#include "audio_driver_web.h"
+#include "godot_js.h"
+
#include "core/input/input.h"
#include "drivers/unix/os_unix.h"
#include "servers/audio_server.h"
@@ -48,11 +50,11 @@ class OS_Web : public OS_Unix {
bool idb_needs_sync = false;
bool pwa_is_waiting = false;
- static void main_loop_callback();
+ WASM_EXPORT static void main_loop_callback();
- static void file_access_close_callback(const String &p_file, int p_flags);
- static void fs_sync_callback();
- static void update_pwa_state_callback();
+ WASM_EXPORT static void file_access_close_callback(const String &p_file, int p_flags);
+ WASM_EXPORT static void fs_sync_callback();
+ WASM_EXPORT static void update_pwa_state_callback();
protected:
void initialize() override;