Commit ef4cdfaf authored by chrelad@gmail.com's avatar chrelad@gmail.com

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
parent 2b733b3e
...@@ -124,3 +124,4 @@ Amruth Raj <amruthraj@motorola.com> ...@@ -124,3 +124,4 @@ Amruth Raj <amruthraj@motorola.com>
Gajendra Singh <wxjg68@motorola.com> Gajendra Singh <wxjg68@motorola.com>
Ehsan Akhgari <ehsan.akhgari@gmail.com> Ehsan Akhgari <ehsan.akhgari@gmail.com>
Naveen Bobbili <naveenbobbili@motorola.com> Naveen Bobbili <naveenbobbili@motorola.com>
Christopher Dale <chrelad@gmail.com>
...@@ -26,11 +26,14 @@ ...@@ -26,11 +26,14 @@
#include "printing/backend/cups_helper.h" #include "printing/backend/cups_helper.h"
#include "printing/backend/print_backend_consts.h" #include "printing/backend/print_backend_consts.h"
#if defined(OS_MACOSX) #if (defined(OS_MACOSX) && \
#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5 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 const int CUPS_PRINTER_SCANNER = 0x2000000; // Scanner-only device
#endif // MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5 #endif
#else
#if !defined(OS_MACOSX)
GCRY_THREAD_OPTION_PTHREAD_IMPL; GCRY_THREAD_OPTION_PTHREAD_IMPL;
namespace { namespace {
...@@ -80,7 +83,7 @@ static base::LazyInstance<GcryptInitializer> g_gcrypt_initializer( ...@@ -80,7 +83,7 @@ static base::LazyInstance<GcryptInitializer> g_gcrypt_initializer(
base::LINKER_INITIALIZED); base::LINKER_INITIALIZED);
} // namespace } // namespace
#endif // defined(OS_MACOSX) #endif // !defined(OS_MACOSX)
namespace printing { namespace printing {
......
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