[gtk-vnc] Fix conditionals in gvncviewer example



commit a4f1d1912090d50005a397c1e64f2ad222a735e8
Author: Daniel P. Berrange <berrange redhat com>
Date:   Thu Jan 31 13:00:42 2013 +0000

    Fix conditionals in gvncviewer example

 examples/gvncviewer.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/examples/gvncviewer.c b/examples/gvncviewer.c
index ea1ba0d..1cececf 100644
--- a/examples/gvncviewer.c
+++ b/examples/gvncviewer.c
@@ -30,7 +30,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <glib.h>
-#if HAVE_GIOUNIX
+#ifdef HAVE_GIOUNIX
 #include <gio/gunixsocketaddress.h>
 #endif
 
@@ -620,7 +620,7 @@ int main(int argc, char **argv)
 #endif
     menubar = gtk_menu_bar_new();
 
-#if HAVE_PULSEAUDIO
+#ifdef HAVE_PULSEAUDIO
     pa = vnc_audio_pulse_new();
 #endif
 
@@ -689,7 +689,7 @@ int main(int argc, char **argv)
     gtk_container_add(GTK_CONTAINER(window), layout);
     gtk_widget_realize(vnc);
 
-#if HAVE_GIOUNIX
+#ifdef HAVE_GIOUNIX
     if (strchr(args[0], '/')) {
         GSocketAddress *addr = g_unix_socket_address_new_with_type
             (args[0], strlen(args[0]),
@@ -719,7 +719,7 @@ int main(int argc, char **argv)
         vnc_display_open_host(VNC_DISPLAY(vnc), hostname, port);
         g_free(hostname);
         g_free(port);
-#if HAVE_GIOUNIX
+#ifdef HAVE_GIOUNIX
     }
 #endif
     vnc_display_set_keyboard_grab(VNC_DISPLAY(vnc), TRUE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]