diff options
Diffstat (limited to 'layout/printing/nsPrintEngine.cpp')
-rw-r--r-- | layout/printing/nsPrintEngine.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/layout/printing/nsPrintEngine.cpp b/layout/printing/nsPrintEngine.cpp index 23edeb1fe0..d232b669bb 100644 --- a/layout/printing/nsPrintEngine.cpp +++ b/layout/printing/nsPrintEngine.cpp @@ -1004,6 +1004,10 @@ nsPrintEngine::GetCurrentPrintSettings(nsIPrintSettings * *aCurrentPrintSettings nsresult nsPrintEngine::CheckForPrinters(nsIPrintSettings* aPrintSettings) { +#if defined(XP_MACOSX) + // Mac doesn't support retrieving a printer list. + return NS_OK; +#else NS_ENSURE_ARG_POINTER(aPrintSettings); // See if aPrintSettings already has a printer @@ -1023,6 +1027,7 @@ nsPrintEngine::CheckForPrinters(nsIPrintSettings* aPrintSettings) rv = aPrintSettings->SetPrinterName(printerName.get()); } return rv; +#endif } //---------------------------------------------------------------------- |