build: Remove mingw check for SetupDiGetDevicePropertyW
It was mssing when the check was added in 2016, but was fixed upstream in https://github.com/mirror/mingw-w64/commit/9ef49367378c50553943bd shortly after. Assume everyone has updated by now. See !861 for a related change on the master branch.
This commit is contained in:
13
meson.build
13
meson.build
@ -778,19 +778,6 @@ if os_win32
|
||||
#include <windows.h>
|
||||
''')
|
||||
cdata.set('SIZEOF_DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY', dvot_size)
|
||||
|
||||
getdevprop_code = '''
|
||||
#define _WIN32_WINNT 0x0600
|
||||
#include <windows.h>
|
||||
#include <devpropdef.h>
|
||||
#include <setupapi.h>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
return SetupDiGetDevicePropertyW(NULL, NULL, NULL, NULL, NULL, 0, NULL, 0);
|
||||
}
|
||||
'''
|
||||
result = cc.links(getdevprop_code, args: ['-lsetupapi'], name: 'has SetupDiGetDevicePropertyW')
|
||||
cdata.set('HAVE_SETUP_DI_GET_DEVICE_PROPERTY_W', result ? 1 : false)
|
||||
endif
|
||||
|
||||
have_gio_unix = false
|
||||
|
||||
Reference in New Issue
Block a user