From 286c3c747fd50627899c0a454468378430152f8a Mon Sep 17 00:00:00 2001 From: dragonmux Date: Tue, 23 Jul 2024 19:45:52 +0100 Subject: [PATCH] hosted/meson: Make sure HIDAPI is built with appropriate standards modes in the fallback paths --- src/platforms/hosted/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platforms/hosted/meson.build b/src/platforms/hosted/meson.build index 2760b9dcba3..af1d420e094 100644 --- a/src/platforms/hosted/meson.build +++ b/src/platforms/hosted/meson.build @@ -170,6 +170,7 @@ if build_machine.system() == 'linux' fallback: ['hidapi', 'hidapi_hidraw_dep'], native: is_cross_build, default_options: [ + 'c_std=gnu99', 'default_library=static', 'install_targets=false', 'with_libusb=false', @@ -185,6 +186,7 @@ else fallback: 'hidapi', native: is_cross_build, default_options: [ + 'c_std=c99', 'default_library=static', 'install_targets=false', 'build_native=true',