diff options
author | Kevin E Martin <kem@kem.org> | 2005-11-01 14:58:24 +0000 |
---|---|---|
committer | Kevin E Martin <kem@kem.org> | 2005-11-01 14:58:24 +0000 |
commit | 8d98d31cbe6ca3d628a2cdaf154c8f6bc24feb45 (patch) | |
tree | 28cc179abcdebf20fd1eabc2f18b23e1714e88da | |
parent | b03fbda14d0d1907085692f663ca81af26e0e2a7 (diff) |
Fix disabling print support in modular tree.XORG-6_8_99_903XORG-6_8_99_902
-rw-r--r-- | xdbedizzy.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xdbedizzy.c b/xdbedizzy.c index c794d1b..4195e73 100644 --- a/xdbedizzy.c +++ b/xdbedizzy.c @@ -40,7 +40,9 @@ #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/extensions/Xdbe.h> +#ifdef USE_XPRINT #include <X11/XprintUtil/xprintutil.h> +#endif #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -59,7 +61,9 @@ static char *ProgramName = NULL; static Display *dpy = NULL; static Screen *screen = NULL; static int screennum = -1; +#ifdef USE_XPRINT static XPContext pcontext = None; /* Xprint context */ +#endif static XRectangle winrect = { 0 }; static unsigned long c_black, c_pink, c_green, c_orange, c_blue; static Window win = None; @@ -475,8 +479,10 @@ int main(int argc, char *argv[]) void *printtofile_handle = NULL; /* "context" when printing to file */ const char *printername = NULL; /* printer to query */ const char *toFile = NULL; /* output file (instead of printer) */ +#ifdef USE_XPRINT XPPrinterList plist = NULL; /* list of printers */ int plist_count; /* number of entries in |plist|-array */ +#endif unsigned short dummy; Bool use_threadsafe_api = True; @@ -712,7 +718,9 @@ int main(int argc, char *argv[]) screen = XDefaultScreenOfDisplay(dpy); screennum = XScreenNumberOfScreen(screen); +#ifdef USE_XPRINT pcontext = None; +#endif winrect.x = 10; winrect.y = 10; |