diff options
Diffstat (limited to 'platform/web/godot_js.h')
-rw-r--r-- | platform/web/godot_js.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/web/godot_js.h b/platform/web/godot_js.h index 3341cf8a67..031e67e486 100644 --- a/platform/web/godot_js.h +++ b/platform/web/godot_js.h @@ -31,11 +31,14 @@ #ifndef GODOT_JS_H #define GODOT_JS_H +#define WASM_EXPORT __attribute__((visibility("default"))) + #ifdef __cplusplus extern "C" { #endif #include <stddef.h> +#include <stdint.h> // Config extern void godot_js_config_locale_get(char *p_ptr, int p_ptr_max); @@ -67,7 +70,7 @@ extern int godot_js_input_gamepad_sample(); extern int godot_js_input_gamepad_sample_count(); extern int godot_js_input_gamepad_sample_get(int p_idx, float r_btns[16], int32_t *r_btns_num, float r_axes[10], int32_t *r_axes_num, int32_t *r_standard); extern void godot_js_input_paste_cb(void (*p_callback)(const char *p_text)); -extern void godot_js_input_drop_files_cb(void (*p_callback)(char **p_filev, int p_filec)); +extern void godot_js_input_drop_files_cb(void (*p_callback)(const char **p_filev, int p_filec)); // TTS extern int godot_js_tts_is_speaking(); |