[vlc-commits] [Git][videolan/vlc][master] meson: fix PROCESS_MITIGATION_IMAGE_LOAD_POLICY check

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Jan 26 11:42:59 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
a98a501d by Steve Lhomme at 2023-01-26T11:23:56+00:00
meson: fix PROCESS_MITIGATION_IMAGE_LOAD_POLICY check

- - - - -


2 changed files:

- config.h.meson
- meson.build


Changes:

=====================================
config.h.meson
=====================================
@@ -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


=====================================
meson.build
=====================================
@@ -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



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a98a501df01abc3b8e1287e6c79c2f9c61178e0c

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a98a501df01abc3b8e1287e6c79c2f9c61178e0c
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list