diff options
author | Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> | 2012-09-05 20:20:01 +0200 |
---|---|---|
committer | Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> | 2012-09-06 09:09:55 +0200 |
commit | 22f2e5f286d55cd5c1ead07fb82cd78027abf490 (patch) | |
tree | f4e1d3ffb22b1a5b85e74d94281a822e7bc1e6ec /vcl/unx | |
parent | 5ca197ce7a2a845933e17fc90195c929cbc7e062 (diff) |
vcl: Fix cups ifdefery
So ENABLE_CUPS is defined if we want CUPS but that does not
guarantee that we actually have it installed. So use HAVE_CUPS_H
that is defined only if the cups headers are found.
Change-Id: I7c6c3659b368dbf9f8efab31ef457f41ac162160
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/generic/printer/ppdparser.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx index 42b05fc06b23..baec3930bd8d 100644 --- a/vcl/unx/generic/printer/ppdparser.cxx +++ b/vcl/unx/generic/printer/ppdparser.cxx @@ -655,7 +655,7 @@ const PPDParser* PPDParser::getParser( const String& rFile ) PrinterInfoManager& rMgr = PrinterInfoManager::get(); if( rMgr.getType() == PrinterInfoManager::CUPS ) { -#ifdef ENABLE_CUPS +#ifdef HAVE_CUPS_H pNewParser = const_cast<PPDParser*>(static_cast<CUPSManager&>(rMgr).createCUPSParser( aFile )); #endif } |