mirror of https://code.videolan.org/videolan/vlc
meson: fix PROCESS_MITIGATION_IMAGE_LOAD_POLICY check
This commit is contained in:
parent
42ad59744f
commit
a98a501df0
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue