#ifndef _conky_h_
#define _conky_h_
+
//#include <mcheck.h>
#include "config.h"
#include <sys/utsname.h>
#include <langinfo.h>
#include <wchar.h>
+#ifdef X11
#if defined(HAVE_CAIRO_H) && defined(HAVE_CAIRO_XLIB_H) && defined(WANT_CAIRO)
#define CAIRO
#include <X11/Xlib.h>
#include <cairo.h>
#include <cairo-xlib.h>
#endif
+#endif /* X11 */
#define TOP_CPU 1
#define TOP_NAME 2
unsigned long looped;
};
+int out_to_console;
+
+int top_cpu;
+int top_mem;
+
+int use_spacer;
+
+char *tmpstring1;
+char *tmpstring2;
+#ifdef X11
/* in x11.c */
#include <X11/Xlib.h>
extern int use_xdbe;
#endif
-int out_to_console;
-
-int top_cpu;
-int top_mem;
-
-int use_spacer;
-
-char *tmpstring1;
-char *tmpstring2;
#ifdef XFT
extern int use_xft;
void set_transparent_background(Window win);
long get_x11_color(const char *);
+#endif /* X11 */
+
/* in common.c */
/* struct that has all info */