From 0b445276bfb3899cc3929ff47a39159d8a0daaed Mon Sep 17 00:00:00 2001 From: "jdunn%netscape.com" Date: Fri, 8 Mar 2002 12:40:20 +0000 Subject: [PATCH] fixing --disable-xprint bustage (i.e. AIX) strcasecmp is defined in strings.h which is NOT included if XPRINT is enabled. So to simply matters, switching calls to PL_strcasecmp. Submitted by pkw@austin.ibm.com # 125078 sr=shaver@mozilla.org a=asa@mozilla.org --- gfx/src/gtk/nsDeviceContextSpecG.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gfx/src/gtk/nsDeviceContextSpecG.cpp b/gfx/src/gtk/nsDeviceContextSpecG.cpp index e9ea0d7728d..a71b90b5a42 100644 --- a/gfx/src/gtk/nsDeviceContextSpecG.cpp +++ b/gfx/src/gtk/nsDeviceContextSpecG.cpp @@ -662,11 +662,11 @@ NS_IMETHODIMP nsPrinterEnumeratorGTK::InitPrintSettingsFromPrinter(const PRUnich if (olist) { default_orientation = &olist[0]; /* First entry is the default one */ - if (!strcasecmp(default_orientation->orientation, "portrait")) { + if (!PL_strcasecmp(default_orientation->orientation, "portrait")) { DO_PR_DEBUG_LOG(("setting default orientation to 'portrait'\n")); aPrintSettings->SetOrientation(nsIPrintSettings::kPortraitOrientation); } - else if (!strcasecmp(default_orientation->orientation, "landscape")) { + else if (!PL_strcasecmp(default_orientation->orientation, "landscape")) { DO_PR_DEBUG_LOG(("setting default orientation to 'landscape'\n")); aPrintSettings->SetOrientation(nsIPrintSettings::kLandscapeOrientation); } @@ -741,11 +741,11 @@ NS_IMETHODIMP nsPrinterEnumeratorGTK::InitPrintSettingsFromPrinter(const PRUnich if (doingOrientation) { nsXPIDLCString orientation; if (NS_SUCCEEDED(CopyPrinterCharPref(pPrefs, "postscript", printerName, "orientation", getter_Copies(orientation)))) { - if (!strcasecmp(orientation, "portrait")) { + if (!PL_strcasecmp(orientation, "portrait")) { DO_PR_DEBUG_LOG(("setting default orientation to 'portrait'\n")); aPrintSettings->SetOrientation(nsIPrintSettings::kPortraitOrientation); } - else if (!strcasecmp(orientation, "landscape")) { + else if (!PL_strcasecmp(orientation, "landscape")) { DO_PR_DEBUG_LOG(("setting default orientation to 'landscape'\n")); aPrintSettings->SetOrientation(nsIPrintSettings::kLandscapeOrientation); } @@ -767,7 +767,7 @@ NS_IMETHODIMP nsPrinterEnumeratorGTK::InitPrintSettingsFromPrinter(const PRUnich { const PSPaperSizeRec *curr = &postscript_module_paper_sizes[i]; - if (!strcasecmp(papername, curr->name)) { + if (!PL_strcasecmp(papername, curr->name)) { width = curr->width; height = curr->height; break;