]> granicus.if.org Git - graphviz/commitdiff
Fix incorrect declaration;
authorerg <devnull@localhost>
Tue, 4 Nov 2008 16:07:09 +0000 (16:07 +0000)
committererg <devnull@localhost>
Tue, 4 Nov 2008 16:07:09 +0000 (16:07 +0000)
wrap Windows code in #ifdef

cmd/smyrna/gui/beacon.c

index 95394ee1dfd46f9f721aad2ca6102dbcb5619a85..1b03ab4018fa9230947b6a42ef970446ee0ab5c5 100644 (file)
@@ -6,7 +6,7 @@
 int pick_node(topview_node * n)
 {
     static int closest_dif = 3;
-       static buf[512];
+       static char buf[512];
        float a, b;
     a = ABS(n->distorted_x - view->GLx);
     b = ABS(n->distorted_y - view->GLy);
@@ -15,7 +15,9 @@ int pick_node(topview_node * n)
        if (!is_node_picked(n)) {
            if (add_to_pick_list(n)) {
                sprintf(buf,"Clicked node name:%s\n",agnameof(n->Node));
+#ifdef _WIN32
                write_to_console(buf);
+#endif
                return 1;
            }
            return 0;