Build fix for Windows/MinGW.

On Window/MinGW 'recv' seems to be already defined in some headers.
Use 'receive' instead, for now.
This commit is contained in:
Uwe Hermann 2012-10-16 12:08:01 +02:00
parent a2353f6051
commit 6aff0d16df
1 changed files with 2 additions and 2 deletions

View File

@ -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_packet *packet)
{ {
struct sr_datafeed_analog *analog; struct sr_datafeed_analog *analog;
@ -203,6 +203,6 @@ SR_PRIV struct sr_output_format output_analog = {
.description = "Analog data", .description = "Analog data",
.df_type = SR_DF_ANALOG, .df_type = SR_DF_ANALOG,
.init = init, .init = init,
.recv = recv, .recv = receive,
.cleanup = cleanup .cleanup = cleanup
}; };