0

CUPS printing: Define CUPS_PRINTER_SCANNER for Linux if CUPS is < 1.4

BUG=97409
TEST=Try compiling on Linux with CUPS < 1.4


Review URL: http://codereview.chromium.org/7980036

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102248 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
chrelad@gmail.com
2011-09-22 07:29:38 +00:00
parent 2b733b3e37
commit ef4cdfaf09
2 changed files with 9 additions and 5 deletions

@ -124,3 +124,4 @@ Amruth Raj <amruthraj@motorola.com>
Gajendra Singh <wxjg68@motorola.com>
Ehsan Akhgari <ehsan.akhgari@gmail.com>
Naveen Bobbili <naveenbobbili@motorola.com>
Christopher Dale <chrelad@gmail.com>

@ -26,11 +26,14 @@
#include "printing/backend/cups_helper.h"
#include "printing/backend/print_backend_consts.h"
#if defined(OS_MACOSX)
#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5
#if (defined(OS_MACOSX) && \
MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5) || \
(defined(OS_LINUX) && \
CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 4)
const int CUPS_PRINTER_SCANNER = 0x2000000; // Scanner-only device
#endif // MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5
#else
#endif
#if !defined(OS_MACOSX)
GCRY_THREAD_OPTION_PTHREAD_IMPL;
namespace {
@ -80,7 +83,7 @@ static base::LazyInstance<GcryptInitializer> g_gcrypt_initializer(
base::LINKER_INITIALIZED);
} // namespace
#endif // defined(OS_MACOSX)
#endif // !defined(OS_MACOSX)
namespace printing {