From da44591bb0f3c66b8145a73670c82776082de781 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Mon, 10 Jun 2024 10:54:40 -0400 Subject: [PATCH] More win --- tests/clap-first-example/CMakeLists.txt | 1 + tests/clap-first-example/distortion_clap.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/clap-first-example/CMakeLists.txt b/tests/clap-first-example/CMakeLists.txt index 0399fdac..e25d319b 100644 --- a/tests/clap-first-example/CMakeLists.txt +++ b/tests/clap-first-example/CMakeLists.txt @@ -2,6 +2,7 @@ project(clap-first-distortion) add_library(clap-first-distortion-base STATIC distortion_clap.cpp) target_link_libraries(clap-first-distortion-base PUBLIC clap) +target_compile_options(clap--first-distortion-base PRIVATE _USE_MATH_DEFINES=1) add_library(${PROJECT_NAME} MODULE distortion_clap_entry.cpp diff --git a/tests/clap-first-example/distortion_clap.cpp b/tests/clap-first-example/distortion_clap.cpp index 4e5e2dec..109fd4c2 100644 --- a/tests/clap-first-example/distortion_clap.cpp +++ b/tests/clap-first-example/distortion_clap.cpp @@ -276,8 +276,8 @@ bool c99dist_state_load(const clap_plugin_t *plugin, const clap_istream_t *strea return true; } -static const clap_plugin_state_t s_c99dist_state = {.save = c99dist_state_save, - .load = c99dist_state_load}; +static const clap_plugin_state_t s_c99dist_state = {c99dist_state_save, + c99dist_state_load}; ///////////////// // clap_plugin //