Fix building with --disable-x11
authorNikolas Garofil <garo@dunaldi.garofil.be>
Sun, 22 Nov 2009 22:05:08 +0000 (23:05 +0100)
committerNikolas Garofil <garo@dunaldi.garofil.be>
Sun, 22 Nov 2009 22:05:08 +0000 (23:05 +0100)
src/colours.c
src/mixer.h
src/specials.h

index 61810c9..016eb32 100644 (file)
@@ -163,6 +163,7 @@ unsigned long *do_gradient(int width, unsigned long first_colour, unsigned long
        return colours;
 }
 
+#ifdef X11
 long get_x11_color(const char *name)
 {
        XColor color;
@@ -188,3 +189,4 @@ long get_x11_color(const char *name)
 
        return (long) color.pixel;
 }
+#endif
index 6db54d5..4ebd3ab 100644 (file)
@@ -9,11 +9,9 @@ void print_mixerl(struct text_object *, char *, int);
 void print_mixerr(struct text_object *, char *, int);
 int check_mixer_muted(struct text_object *);
 
-#ifdef X11
 void scan_mixer_bar(struct text_object *, const char *);
 void print_mixer_bar(struct text_object *, char *, int);
 void print_mixerl_bar(struct text_object *, char *, int);
 void print_mixerr_bar(struct text_object *, char *, int);
-#endif /* X11 */
 
 #endif /*MIXER_H_*/
index e250e3f..820f9d1 100644 (file)
@@ -95,8 +95,8 @@ extern int max_specials;
 
 /* scanning special arguments */
 const char *scan_bar(struct text_object *, const char *);
-#ifdef X11
 const char *scan_gauge(struct text_object *, const char *);
+#ifdef X11
 char *scan_font(const char *);
 char *scan_graph(struct text_object *, const char *, int);
 void scan_tab(struct text_object *, const char *);