From: c vw Date: Fri, 23 Jul 2021 13:17:37 +0000 (+0200) Subject: fixed error in non-SOAPY compilations X-Git-Url: https://git.rkrishnan.org/Site/Content/$sch_link?a=commitdiff_plain;h=1dae1b7638b1fc7ff1dcb7c3af50593badefa69c;p=pihpsdr.git fixed error in non-SOAPY compilations --- diff --git a/new_menu.c b/new_menu.c index 4da1fbf..4eebec4 100644 --- a/new_menu.c +++ b/new_menu.c @@ -495,7 +495,10 @@ void new_menu() // This may help to recover from certain error conditions // At the moment I do not know how to do this for SOAPY // - if (protocol != SOAPYSDR_PROTOCOL) { +#ifdef SOAPYSDR + if (protocol != SOAPYSDR_PROTOCOL) +#endif + { GtkWidget *restart_b=gtk_button_new_with_label("Restart"); g_signal_connect (restart_b, "button-press-event", G_CALLBACK(restart_cb), NULL); gtk_grid_attach(GTK_GRID(grid),restart_b,2,0,2,1);