diff options
| author | Andre Weissflog <floooh@gmail.com> | 2023-02-06 17:53:20 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2023-02-06 17:53:20 +0100 |
| commit | 4ef1cda4ed642fef15587f56028f4a4663261ea3 (patch) | |
| tree | 4db608d40deceb64d5a96b18adbf040b84205637 | |
| parent | decdb69a0a0f2f9494f743d6ba79fc35de50e8ea (diff) | |
sokol_log.h: fix emscripten build
| -rw-r--r-- | sokol_log.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sokol_log.h b/sokol_log.h index 01dd8c3b..bcc505df 100644 --- a/sokol_log.h +++ b/sokol_log.h @@ -179,7 +179,9 @@ SOKOL_LOG_API_DECL void slog_func(const char* tag, uint32_t log_level, uint32_t #include <stdio.h> // fputs #include <stddef.h> // size_t -#if defined(_SLOG_WINDOWS) +#if defined(_SLOG_EMSCRIPTEN) +#include <emscripten/em_js.h> +#elif defined(_SLOG_WINDOWS) #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif |