Bug 367829 - not possible to build w/o MOZ_ENABLE_POSTSCRIPT p=romaxa <romaxa@gmail.com> r=roc, a=stuart

This commit is contained in:
asqueella@gmail.com 2007-08-25 13:01:03 -07:00
parent 0b4333cd31
commit 08b0ac8219
2 changed files with 11 additions and 3 deletions

View File

@ -108,11 +108,16 @@ CPPSRCS = \
nsPrintOptionsGTK.cpp \
nsImageToPixbuf.cpp \
nsAccessibilityHelper.cpp \
nsPrintJobFactoryGTK.cpp \
nsPrintJobGTK.cpp \
nsIdleServiceGTK.cpp \
$(NULL)
ifdef MOZ_ENABLE_POSTSCRIPT
CPPSRCS += \
nsPrintJobFactoryGTK.cpp \
nsPrintJobGTK.cpp \
$(NULL)
endif
# build our subdirs, too
ifdef ACCESSIBILITY
REQUIRES += accessibility

View File

@ -412,7 +412,10 @@ NS_IMETHODIMP nsDeviceContextSpecGTK::GetSurfaceForPrinter(gfxASurface **aSurfac
DO_PR_DEBUG_LOG(("\"%s\", %f, %f\n", path, width, height));
nsresult rv = nsPrintJobFactoryGTK::CreatePrintJob(this, mPrintJob);
nsresult rv = NS_ERROR_FAILURE;
#ifndef MOZ_ENABLE_POSTSCRIPT
nsPrintJobFactoryGTK::CreatePrintJob(this, mPrintJob);
#endif
if (NS_FAILED(rv))
return rv;