summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2016-11-17 22:46:18 +1100
committerJames Ross-Gowan <rossymiles@gmail.com>2016-11-17 23:34:20 +1100
commit40b626fd9b58e2975cff8dec202848a7bce41a9f (patch)
tree313b8ed8ca4b57da414a434ab24eb505b4468615 /wscript
parenta3c27786c6aeac55942a805281f45a1571d899f4 (diff)
downloadmpv-40b626fd9b58e2975cff8dec202848a7bce41a9f.tar.bz2
mpv-40b626fd9b58e2975cff8dec202848a7bce41a9f.tar.xz
build: fix compilation with mingw-w64/Clang
This fixes the build in mingw-w64/Clang on MSYS2. It also disables the use of gnu_printf in Clang, which was what was causing most of the warnings. The Clang-compiled mpv binary appears to work, but there are no guarantees yet, since until now mpv has only been tested with mingw-w64/GCC on Windows. Fixes #3800
Diffstat (limited to 'wscript')
-rw-r--r--wscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/wscript b/wscript
index c4d0c9c8b0..2b0de8bcd5 100644
--- a/wscript
+++ b/wscript
@@ -119,7 +119,7 @@ main_dependencies = [
'name': 'mingw',
'desc': 'MinGW',
'deps': [ 'os-win32' ],
- 'func': check_statement('stddef.h', 'int x = __MINGW32__;'
+ 'func': check_statement('stdlib.h', 'int x = __MINGW32__;'
'int y = __MINGW64_VERSION_MAJOR'),
}, {
'name': 'posix',