Kaydet (Commit) 83748e50 authored tarafından Caolán McNamara's avatar Caolán McNamara

CUPS_VERSION_MAJOR is not defined

on arm

Change-Id: Ibeca07800d02f5f69046c7bdee57143c78c03aad
üst 6534fa1c
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment