diff options
author | craig.schlenter@chromium.org <craig.schlenter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-10 04:57:12 +0000 |
---|---|---|
committer | craig.schlenter@chromium.org <craig.schlenter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-10 04:57:12 +0000 |
commit | 2c93d189c2d2100b8745a3ba19d6f49c6868a868 (patch) | |
tree | d6ce144af67f1984f712081783cf4f5264661ac0 /printing/page_overlays.cc | |
parent | 9f0aaf4d34758342aee1685d9a2502ba27339d9f (diff) | |
download | chromium_src-2c93d189c2d2100b8745a3ba19d6f49c6868a868.zip chromium_src-2c93d189c2d2100b8745a3ba19d6f49c6868a868.tar.gz chromium_src-2c93d189c2d2100b8745a3ba19d6f49c6868a868.tar.bz2 |
Quick fix for linux shared build.
Review URL: http://codereview.chromium.org/155233
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20365 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/page_overlays.cc')
-rw-r--r-- | printing/page_overlays.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/printing/page_overlays.cc b/printing/page_overlays.cc index 946186d..e590490 100644 --- a/printing/page_overlays.cc +++ b/printing/page_overlays.cc @@ -137,6 +137,9 @@ std::wstring PageOverlays::ReplaceVariables(const std::wstring& input, const PrintedDocument& document, const PrintedPage& page) { std::wstring output(input); +// Prevent references to document.page_count() on Linux until +// printed_document.cc is included in printing.gyp. +#if !defined(OS_LINUX) for (size_t offset = output.find(L'{', 0); offset != std::wstring::npos; offset = output.find(L'{', offset)) { @@ -200,6 +203,7 @@ std::wstring PageOverlays::ReplaceVariables(const std::wstring& input, ++offset; } } +#endif // !defined(OS_LINUX) return output; } |