summaryrefslogtreecommitdiff
blob: f04d2419bed8b2dc5cbb0aee15aad2133a910b38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- a/display.c
+++ b/display.c
@@ -45,7 +45,7 @@
 #include "mtr-curses.h"
 #endif
 
-#ifdef NO_GTK
+#if (NO_GTK == 1)
 #define gtk_open()
 #define gtk_close()
 #define gtk_redraw()
@@ -71,7 +71,7 @@
   DisplayMode = DisplayCurses;
 #endif
 
-#ifndef NO_GTK
+#if (NO_GTK == 0)
   if(gtk_detect(argc, argv)) {
     DisplayMode = DisplayGTK;
   }
--- a/gtk.c
+++ b/gtk.c
@@ -26,7 +26,7 @@
 #include <sys/types.h>
 #include <string.h>
 
-#ifndef NO_GTK
+#if (NO_GTK == 0)
 #include <string.h>
 #include <sys/types.h>
 #include <gtk/gtk.h>
@@ -38,7 +38,7 @@
 #include "version.h"
 
 #include "img/mtr_icon.xpm"
-#endif
+#endif /* NO_GTK == 0 */
 
 gint gtk_ping(gpointer data);
 gint Copy_activate(GtkWidget *widget, gpointer data);