From: Uwe Hermann Date: Tue, 16 Oct 2012 10:08:01 +0000 (+0200) Subject: Build fix for Windows/MinGW. X-Git-Tag: dsupstream~664 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6aff0d16df34c60dada92486db0554ad32e08422;p=libsigrok.git Build fix for Windows/MinGW. On Window/MinGW 'recv' seems to be already defined in some headers. Use 'receive' instead, for now. --- diff --git a/output/analog.c b/output/analog.c index daab86a7..3049ba73 100644 --- a/output/analog.c +++ b/output/analog.c @@ -142,7 +142,7 @@ static void fancyprint(int unit, int mqflags, float value, GString *out) } -static GString *recv(struct sr_output *o, const struct sr_dev_inst *sdi, +static GString *receive(struct sr_output *o, const struct sr_dev_inst *sdi, struct sr_datafeed_packet *packet) { struct sr_datafeed_analog *analog; @@ -203,6 +203,6 @@ SR_PRIV struct sr_output_format output_analog = { .description = "Analog data", .df_type = SR_DF_ANALOG, .init = init, - .recv = recv, + .recv = receive, .cleanup = cleanup };