diff options
author | Lorn Potter <lorn.potter@gmail.com> | 2020-01-20 20:33:07 +1000 |
---|---|---|
committer | Lorn Potter <lorn.potter@gmail.com> | 2020-02-18 12:40:19 +1000 |
commit | 51cc564c500fdbca9d3b6526931213c9679f849b (patch) | |
tree | 1928e03a65983d2458af0cc86cbd33d84b945436 /src/plugins/platforms | |
parent | b84704e208550af5e257ee8b50f5858e4b148f23 (diff) |
wasm: guard nonthreaded builds from using threading.h
Change-Id: Ib5cd8afc4822cc89371d184ee5645ed8f496c8b0
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r-- | src/plugins/platforms/wasm/qwasmeventdispatcher.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/wasm/qwasmeventdispatcher.cpp b/src/plugins/platforms/wasm/qwasmeventdispatcher.cpp index d89cd78b28..ca8db9b215 100644 --- a/src/plugins/platforms/wasm/qwasmeventdispatcher.cpp +++ b/src/plugins/platforms/wasm/qwasmeventdispatcher.cpp @@ -33,9 +33,11 @@ #include <emscripten.h> +#if QT_CONFIG(thread) #if (__EMSCRIPTEN_major__ > 1 || __EMSCRIPTEN_minor__ > 38 || __EMSCRIPTEN_minor__ == 38 && __EMSCRIPTEN_tiny__ >= 22) # define EMSCRIPTEN_HAS_ASYNC_RUN_IN_MAIN_RUNTIME_THREAD #endif +#endif #ifdef EMSCRIPTEN_HAS_ASYNC_RUN_IN_MAIN_RUNTIME_THREAD #include <emscripten/threading.h> |