mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
os: add __USE_MINGW_ANSI_STDIO on mingw
Enable the %zu printf pattern. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -62,13 +62,16 @@ endif
|
||||
os_dep = []
|
||||
os_c_args = []
|
||||
|
||||
# eg. struct msghdr -> msg_control
|
||||
if host_machine.system() == 'sunos'
|
||||
# eg. struct msghdr -> msg_control
|
||||
os_c_args += '-D_XOPEN_SOURCE=1'
|
||||
os_c_args += '-D_XOPEN_SOURCE_EXTENDED=1'
|
||||
os_c_args += '-D__EXTENSIONS__'
|
||||
os_dep += cc.find_library('socket')
|
||||
os_dep += cc.find_library('nsl')
|
||||
|
||||
# enable "%zu" printf pattern on mingw
|
||||
conf_data.set('__USE_MINGW_ANSI_STDIO', 1)
|
||||
endif
|
||||
|
||||
if get_option('xres')
|
||||
|
||||
Reference in New Issue
Block a user