meson: fix PROCESS_MITIGATION_IMAGE_LOAD_POLICY check

This commit is contained in:
Steve Lhomme 2023-01-25 11:45:20 +01:00
parent 42ad59744f
commit a98a501df0
2 changed files with 7 additions and 2 deletions

View File

@ -419,9 +419,9 @@
/* Define to 1 if you have the `posix_memalign' function. */
#mesondefine HAVE_POSIX_MEMALIGN
/* TODO: Define to 1 if the system has the type
/* Define to 1 if the system has the type
`PROCESS_MITIGATION_IMAGE_LOAD_POLICY'. */
#undef HAVE_PROCESS_MITIGATION_IMAGE_LOAD_POLICY
#mesondefine HAVE_PROCESS_MITIGATION_IMAGE_LOAD_POLICY
/* Define to 1 if you have the `readv' function. */
#mesondefine HAVE_READV

View File

@ -310,6 +310,11 @@ windows_version_test = '''
vlc_conf_prefix = vlc_conf_prefix + '#define @0@ @1@\n'.format(d.get(0), d.get(1))
endforeach
# Check for HAVE_PROCESS_MITIGATION_IMAGE_LOAD_POLICY type
if cc.has_type('PROCESS_MITIGATION_IMAGE_LOAD_POLICY', prefix: '#include <winnt.h>')
cdata.set('HAVE_PROCESS_MITIGATION_IMAGE_LOAD_POLICY', 1)
endif
mingw_check = '''
#ifndef __MINGW32__
# error Not compiling with mingw