From: Uwe Hermann Date: Sun, 5 Feb 2012 12:36:03 +0000 (+0100) Subject: sr: Compile fix for Windows/MinGW. X-Git-Tag: libsigrok-0.1.0~152 X-Git-Url: http://sigrok.org/gitweb/?a=commitdiff_plain;h=3d2efd7d15f1e35b4080c4632dd94376ae824fa2;p=libsigrok.git sr: Compile fix for Windows/MinGW. --- diff --git a/hardware/demo/demo.c b/hardware/demo/demo.c index e2cbe30d..a7ce4ec7 100644 --- a/hardware/demo/demo.c +++ b/hardware/demo/demo.c @@ -64,7 +64,7 @@ enum { }; /* FIXME: Should not be global. */ -static GIOChannel *channels[2]; +SR_PRIV GIOChannel *channels[2]; struct databag { int pipe_fds[2]; diff --git a/session.c b/session.c index 0c21c7ca..683ca908 100644 --- a/session.c +++ b/session.c @@ -25,8 +25,8 @@ #include "sigrok.h" #include "sigrok-internal.h" -/* demo.c */ -extern GIOChannel channels[2]; +/* demo.c. TODO: Should not be global! */ +extern SR_PRIV GIOChannel channels[2]; struct source { int fd;