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 //