Skip to content

Commit

Permalink
fix build without libsigrokdecode
Browse files Browse the repository at this point in the history
When built with libsigrokdecode additional headers are automagically included
via the Python.h header. When built without they must included explicitly.
  • Loading branch information
sharkcz authored and uwehermann committed Jan 28, 2014
1 parent 02c6593 commit 8d52f78
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions input.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

#include "sigrok-cli.h"
#include "config.h"
#include <sys/stat.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>

extern gchar *opt_input_file;
Expand Down
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include "sigrok-cli.h"
#include "config.h"
#include <stdlib.h>
#include <glib.h>

struct sr_context *sr_ctx = NULL;
Expand Down
2 changes: 2 additions & 0 deletions sigrok-cli.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 8d52f78

Please sign in to comment.