]> sigrok.org Git - libsigrok.git/commitdiff
sr: Compile fix for Windows/MinGW.
authorUwe Hermann <redacted>
Sun, 5 Feb 2012 12:36:03 +0000 (13:36 +0100)
committerUwe Hermann <redacted>
Sun, 5 Feb 2012 12:36:03 +0000 (13:36 +0100)
hardware/demo/demo.c
session.c

index e2cbe30de6eeeb8e3a27400762356c2b8255f496..a7ce4ec70aa870905065d1afcaf455a3d8a56398 100644 (file)
@@ -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];
index 0c21c7caa9fa5f5d5e2c3919d272b221b734f220..683ca9089c7ee30eb4b011c7fe5dc4af70502f5b 100644 (file)
--- 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;