From: Bert Vermeulen Date: Sat, 26 Apr 2014 19:11:16 +0000 (-0700) Subject: Fix compile without decoding support. X-Git-Tag: sigrok-cli-0.5.0~7 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=628197af18a8019eb9fd5d0aa280e7f4eca7f1ac;p=sigrok-cli.git Fix compile without decoding support. This fixes bug 351. --- diff --git a/show.c b/show.c index 9adee67..3ecb319 100644 --- a/show.c +++ b/show.c @@ -45,12 +45,14 @@ static gint sort_drivers(gconstpointer a, gconstpointer b) return strcmp(sdda->name, sddb->name); } +#ifdef HAVE_SRD static gint sort_pds(gconstpointer a, gconstpointer b) { const struct srd_decoder *sda = a, *sdb = b; return strcmp(sda->id, sdb->id); } +#endif void show_version(void) {