From 53b8895a1a368c49082c111f950330959dae2107 Mon Sep 17 00:00:00 2001 From: Komo Date: Sun, 19 Jan 2025 01:40:27 +0800 Subject: [PATCH] libnyquist: try defining register --- packages/l/libnyquist/patches/error-deprecated-register.patch | 2 +- packages/l/libnyquist/xmake.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/l/libnyquist/patches/error-deprecated-register.patch b/packages/l/libnyquist/patches/error-deprecated-register.patch index 4c5f1ed710b..37fc0a24d22 100644 --- a/packages/l/libnyquist/patches/error-deprecated-register.patch +++ b/packages/l/libnyquist/patches/error-deprecated-register.patch @@ -6,7 +6,7 @@ index 5a7d764..c461a75 100644 _disable_warning(4018) endif() -+target_compile_options(libnyquist PRIVATE -Wno-error=deprecated-register) ++target_compile_options(libnyquist PRIVATE -Dregister=) + target_include_directories(libnyquist PUBLIC diff --git a/packages/l/libnyquist/xmake.lua b/packages/l/libnyquist/xmake.lua index fa538a9a188..c445c3aa4a2 100644 --- a/packages/l/libnyquist/xmake.lua +++ b/packages/l/libnyquist/xmake.lua @@ -7,7 +7,7 @@ package("libnyquist") add_versions("2023.02.12", "767efd97cdd7a281d193296586e708490eb6e54f") add_patches("2023.02.12", path.join(os.scriptdir(), "patches", "error-deprecated-register.patch"), - "26c42b9bdb1f173737b2348a3bf03c474dc2f31b05ca4bc2499587de1f7f1bce") + "1bbf8462e8d3fac5d9b533e59ee475165650c5f7d9439b46da9b6f5cf25dd40f") add_deps("cmake")