xc/config/cf/X11.tmpl

xc/programs/Xserver/Xext/Imakefile
xc/programs/Xserver/dix/Imakefile
xc/programs/Xserver/dix/main.c
xc/programs/Xserver/dix/xpstubs.c
xc/programs/Xserver/mi/miinitext.c
//bugs.freedesktop.org/show_bug.cgi?id=2792) attachment #2526
    (https://bugs.freedesktop.org/attachment.cgi?id=2526) bug 2792 part II:
    Make Xprint headers in dix/, mi/, os/ and Xext/ conditional on whether
    the Xprint extension is build or not. Patch by Egbert Eich
    <eich@freedesktop.org> and Roland Mainz <roland.mainz@nrubsig.org>.
This commit is contained in:
Roland Mainz 2005-04-24 01:10:12 +00:00
parent 13fcfee373
commit a369d390a8
4 changed files with 18 additions and 1 deletions

View File

@ -100,7 +100,9 @@ Equipment Corporation.
#include "site.h" #include "site.h"
#include "dixfont.h" #include "dixfont.h"
#include "extnsionst.h" #include "extnsionst.h"
#ifdef XPRINT
#include "DiPrint.h" #include "DiPrint.h"
#endif
#ifdef PANORAMIX #ifdef PANORAMIX
#include "panoramiXsrv.h" #include "panoramiXsrv.h"
#else #else
@ -249,7 +251,9 @@ main(int argc, char *argv[], char *envp[])
display = "0"; display = "0";
InitGlobals(); InitGlobals();
#ifdef XPRINT
PrinterInitGlobals(); PrinterInitGlobals();
#endif
/* Quartz support on Mac OS X requires that the Cocoa event loop be in /* Quartz support on Mac OS X requires that the Cocoa event loop be in
* the main thread. This allows the X server main to be called again * the main thread. This allows the X server main to be called again
@ -361,7 +365,9 @@ main(int argc, char *argv[], char *envp[])
InitCallbackManager(); InitCallbackManager();
InitVisualWrap(); InitVisualWrap();
InitOutput(&screenInfo, argc, argv); InitOutput(&screenInfo, argc, argv);
#ifdef XPRINT
PrinterInitOutput(&screenInfo, argc, argv); PrinterInitOutput(&screenInfo, argc, argv);
#endif
if (screenInfo.numScreens < 1) if (screenInfo.numScreens < 1)
FatalError("no screens found"); FatalError("no screens found");

View File

@ -29,7 +29,9 @@ from The Open Group.
#include "misc.h" #include "misc.h"
#include "font.h" #include "font.h"
#ifdef XPRINT
#include "DiPrint.h" #include "DiPrint.h"
#endif
Bool Bool
XpClientIsBitmapClient( XpClientIsBitmapClient(
@ -45,6 +47,7 @@ XpClientIsPrintClient(
{ {
return FALSE; return FALSE;
} }
#ifdef XPRINT
int int
PrinterOptions( PrinterOptions(
int argc, int argc,
@ -66,5 +69,5 @@ void PrinterUseMsg(void)
void PrinterInitGlobals(void) void PrinterInitGlobals(void)
{ {
} }
#endif /* XPRINT */

View File

@ -84,6 +84,10 @@ SOFTWARE.
#undef DAMAGE #undef DAMAGE
#undef XFIXES #undef XFIXES
#undef XEVIE #undef XEVIE
#else
#ifndef LOADABLEPRINTDDX
#undef XPRINT
#endif /* LOADABLEPRINTDDX */
#endif /* PRINT_ONLY_SERVER */ #endif /* PRINT_ONLY_SERVER */

View File

@ -123,7 +123,9 @@ OR PERFORMANCE OF THIS SOFTWARE.
#include "picture.h" #include "picture.h"
#endif #endif
#ifdef XPRINT
#include "DiPrint.h" #include "DiPrint.h"
#endif
Bool noTestExtensions; Bool noTestExtensions;
#ifdef BEZIER #ifdef BEZIER
@ -655,7 +657,9 @@ void UseMsg(void)
#ifdef XCSECURITY #ifdef XCSECURITY
ErrorF("-sp file security policy file\n"); ErrorF("-sp file security policy file\n");
#endif #endif
#ifdef XPRINT
PrinterUseMsg(); PrinterUseMsg();
#endif
ErrorF("-su disable any save under support\n"); ErrorF("-su disable any save under support\n");
ErrorF("-t # mouse threshold (pixels)\n"); ErrorF("-t # mouse threshold (pixels)\n");
ErrorF("-terminate terminate at server reset\n"); ErrorF("-terminate terminate at server reset\n");