diff --git a/tests/emscripten_set_timeout.c b/tests/emscripten_set_timeout.c index f2fefe71add76..497f9bbacc4a7 100644 --- a/tests/emscripten_set_timeout.c +++ b/tests/emscripten_set_timeout.c @@ -1,4 +1,5 @@ #include +#include #include int func1Executed = 0; diff --git a/tests/emscripten_set_timeout_loop.c b/tests/emscripten_set_timeout_loop.c index 67908afe203ca..8b6ead4f4a437 100644 --- a/tests/emscripten_set_timeout_loop.c +++ b/tests/emscripten_set_timeout_loop.c @@ -1,4 +1,5 @@ #include +#include #include double previousSetTimeouTime = 0; diff --git a/tests/pthread/emscripten_thread_sleep.c b/tests/pthread/emscripten_thread_sleep.c index 0aa9b8f32f7ce..d7f879ef17c65 100644 --- a/tests/pthread/emscripten_thread_sleep.c +++ b/tests/pthread/emscripten_thread_sleep.c @@ -2,6 +2,7 @@ #include #include #include +#include void Sleep(double msecs) { diff --git a/tests/pthread/test_pthread_create_pthread.cpp b/tests/pthread/test_pthread_create_pthread.cpp index 026e31f4a073f..cce72ab133486 100644 --- a/tests/pthread/test_pthread_create_pthread.cpp +++ b/tests/pthread/test_pthread_create_pthread.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include volatile int result = 0; diff --git a/tests/pthread/test_pthread_volatile.cpp b/tests/pthread/test_pthread_volatile.cpp index 671448bccfef5..231453a14e6cf 100644 --- a/tests/pthread/test_pthread_volatile.cpp +++ b/tests/pthread/test_pthread_volatile.cpp @@ -4,6 +4,7 @@ // found in the LICENSE file. #include +#include #include #include #include diff --git a/tests/report_result.h b/tests/report_result.h index 907e92fcad117..2012bdf16b072 100644 --- a/tests/report_result.h +++ b/tests/report_result.h @@ -10,17 +10,15 @@ #ifndef REPORT_RESULT_H_ #define REPORT_RESULT_H_ -#include - #ifdef __EMSCRIPTEN__ -#include - #ifdef __cplusplus extern "C" { #endif + void _ReportResult(int result, int sync); void _MaybeReportResult(int result, int sync); + #ifdef __cplusplus } #endif @@ -40,7 +38,9 @@ void _MaybeReportResult(int result, int sync); #else +#include #include + #define REPORT_RESULT(result) \ do { \ printf("result: %d\n", result); \ diff --git a/tests/request_animation_frame.cpp b/tests/request_animation_frame.cpp index a31f37191f3c4..a78b81139187b 100644 --- a/tests/request_animation_frame.cpp +++ b/tests/request_animation_frame.cpp @@ -7,6 +7,7 @@ // Test RAF is actually used (and not setTimeout etc.) +#include #include EMSCRIPTEN_KEEPALIVE extern "C" void good() { diff --git a/tests/sdl2_net_client.c b/tests/sdl2_net_client.c index 65a8e2dfb1aaf..90293ca61be21 100644 --- a/tests/sdl2_net_client.c +++ b/tests/sdl2_net_client.c @@ -23,6 +23,10 @@ #include "SDL_net.h" +#ifdef __EMSCRIPTEN__ +#include +#endif + typedef enum { MSG_READ, MSG_WRITE diff --git a/tests/sdl_stb_image_cleanup.c b/tests/sdl_stb_image_cleanup.c index 519011136c78e..4e932bf6bbe8b 100644 --- a/tests/sdl_stb_image_cleanup.c +++ b/tests/sdl_stb_image_cleanup.c @@ -6,6 +6,7 @@ */ #include +#include #include #include diff --git a/tests/test_browser.py b/tests/test_browser.py index 4a26622d59021..e4c7f2d6eb30d 100644 --- a/tests/test_browser.py +++ b/tests/test_browser.py @@ -3499,6 +3499,7 @@ def do_run(src, expected_output): }; ''') src += r''' + #include int main() { test_main(); EM_ASM({