mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-06 02:40:19 +01:00
Added extra check for HAVE_STRNDUP in Win32 Mingw Meson build
Mingw on Windows defines the strndup function, but it's not actually usable because string.h doesn't exist. See details on the Meson bug here: https://github.com/mesonbuild/meson/issues/3672 Note that although Meson marked this bug as "fixed", it's only fixed in the case where you're using `prefix : '#include <string.h>'`.
This commit is contained in:
parent
d88dd1794e
commit
3ee18ffc28
1 changed files with 2 additions and 1 deletions
|
|
@ -115,7 +115,6 @@ check_funcs = [
|
|||
'funlockfile',
|
||||
'getline',
|
||||
'link',
|
||||
'strndup',
|
||||
'fork',
|
||||
'waitpid',
|
||||
'raise',
|
||||
|
|
@ -820,6 +819,8 @@ foreach name : check_funcs
|
|||
endif
|
||||
endforeach
|
||||
|
||||
conf.set('HAVE_STRNDUP', cc.has_function('strndup', prefix : '#include <string.h>'))
|
||||
|
||||
pthread_c_args = []
|
||||
pthread_link_args = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue