]> sigrok.org Git - libsigrok.git/commitdiff
Build fix for Windows/MinGW.
authorUwe Hermann <redacted>
Tue, 16 Oct 2012 10:08:01 +0000 (12:08 +0200)
committerUwe Hermann <redacted>
Tue, 16 Oct 2012 10:19:36 +0000 (12:19 +0200)
On Window/MinGW 'recv' seems to be already defined in some headers.
Use 'receive' instead, for now.

output/analog.c

index daab86a7fbd655c1419492908253140a7e628e70..3049ba738a78eb3325b3c0c33b2578b9e49847e8 100644 (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_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
 };