Make sure that no X11 stuff is in the binary when not requested
authorNikolas Garofil <garo@dunaldi.garofil.be>
Sun, 31 May 2009 14:48:16 +0000 (16:48 +0200)
committerNikolas Garofil <garo@dunaldi.garofil.be>
Sun, 31 May 2009 14:48:16 +0000 (16:48 +0200)
src/conky.h
src/fonts.c
src/fonts.h
src/x11.h

index 78f6e1f..78f30d6 100644 (file)
@@ -317,7 +317,9 @@ int spaced_print(char *, int, const char *, int, ...)
        __attribute__((format(printf, 3, 5)));
 extern int inotify_fd;
 
+#ifdef X11
 #define TO_X 1
+#endif
 #define TO_STDOUT 2
 #define TO_STDERR 4
 #define OVERWRITE_FILE 8
index d9948de..940277c 100644 (file)
@@ -183,4 +183,3 @@ void load_fonts(void)
                }
        }
 }
-
index 1c0093e..932cb57 100644 (file)
@@ -24,6 +24,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *
  */
+#ifdef X11
 #ifndef _FONTS_H
 #define _FONTS_H
 
@@ -76,3 +77,4 @@ void free_fonts(void);
 void load_fonts(void);
 
 #endif /* _FONTS_H */
+#endif /* X11 */
index 4c275d6..45b209d 100644 (file)
--- a/src/x11.h
+++ b/src/x11.h
@@ -1,3 +1,4 @@
+#ifdef X11
 #ifndef X11_H_
 #define X11_H_
 
@@ -85,3 +86,4 @@ void set_transparent_background(Window win);
 long get_x11_color(const char *);
 
 #endif /*X11_H_*/
+#endif /* X11 */