From: Dan HorĂ¡k Date: Sat, 25 Jan 2014 13:15:24 +0000 (+0100) Subject: fix build without libsigrokdecode X-Git-Tag: sigrok-cli-0.5.0~44 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8d52f788755a9666e7053c2d411fec069f5afc4c;p=sigrok-cli.git fix build without libsigrokdecode When built with libsigrokdecode additional headers are automagically included via the Python.h header. When built without they must included explicitly. --- diff --git a/input.c b/input.c index 5650b9f..4d3f358 100644 --- a/input.c +++ b/input.c @@ -19,6 +19,10 @@ #include "sigrok-cli.h" #include "config.h" +#include +#include +#include +#include #include extern gchar *opt_input_file; diff --git a/main.c b/main.c index 9ab3f77..5dcee2c 100644 --- a/main.c +++ b/main.c @@ -19,6 +19,7 @@ #include "sigrok-cli.h" #include "config.h" +#include #include struct sr_context *sr_ctx = NULL; diff --git a/sigrok-cli.h b/sigrok-cli.h index 7a05fc4..4d2f0f2 100644 --- a/sigrok-cli.h +++ b/sigrok-cli.h @@ -54,6 +54,7 @@ void run_session(void); void load_input_file(void); /* decode.c */ +#ifdef HAVE_SRD int register_pds(const char *opt_pds, char *opt_pd_annotations); int setup_pd_stack(char *opt_pds, char *opt_pd_stack, char *opt_pd_annotations); int setup_pd_annotations(char *opt_pd_annotations); @@ -62,6 +63,7 @@ int setup_pd_binary(char *opt_pd_binary); void show_pd_annotations(struct srd_proto_data *pdata, void *cb_data); void show_pd_meta(struct srd_proto_data *pdata, void *cb_data); void show_pd_binary(struct srd_proto_data *pdata, void *cb_data); +#endif /* parsers.c */ GSList *parse_probestring(struct sr_dev_inst *sdi, const char *probestring);