summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/unx/generic/printer/ppdparser.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index 97551db1983b..3f9a0d131677 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -619,6 +619,7 @@ PPDParser::PPDParser( const OUString& rFile, std::vector<PPDKey*> keys) :
if ( pKey ) {
PPDKey* pImageableAreas = new PPDKey("ImageableArea");
PPDKey* pPaperDimensions = new PPDKey("PaperDimension");
+#if defined(CUPS_VERSION_MAJOR)
#if (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 7) || CUPS_VERSION_MAJOR > 1
for (int i = 0; i < pKey->countValues(); i++) {
const PPDValue* pValue = pKey -> getValue(i);
@@ -648,6 +649,7 @@ PPDParser::PPDParser( const OUString& rFile, std::vector<PPDKey*> keys) :
}
}
#endif // HAVE_CUPS_API_1_7
+#endif
insertKey("ImageableArea", pImageableAreas);
insertKey("PaperDimension", pPaperDimensions);
}