summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2016-07-28 14:26:38 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2019-05-18 14:59:38 +0000
commit246b729df87e94e405a8b257f34a22fa2719d30c (patch)
tree25cea0489755db2259253393cf28def6ecfb3279 /include
parent29a8baa031a87ef44d1e5320ecec5015d26fd385 (diff)
configure: Force --disable-input-thread for MinGW
I don't think an input thread can ever be useful on Windows. There is a pthread emulation, so having the thread itself isn't much of a problem. However, there is no device to wait on for Windows events, and even if we were to replace select() with WFMO, Windows wants to send events for a window to the thread which created that window. So, disable input thread by default for MinGW v2: Also add similar to meson.build
Diffstat (limited to 'include')
-rw-r--r--include/meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/meson.build b/include/meson.build
index 65781b7a0..527025b24 100644
--- a/include/meson.build
+++ b/include/meson.build
@@ -60,6 +60,9 @@ else
if not enable_input_thread and get_option('input_thread') == 'true'
error('Input thread enabled and PTHREAD_MUTEX_RECURSIVE not found')
endif
+ if host_machine.system() == 'windows' and get_option('input_thread') == 'auto'
+ enable_input_thread = false
+ endif
endif
conf_data.set('HAVE_INPUTTHREAD', enable_input_thread)