diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-01 00:02:29 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-01 00:02:29 +0000 |
commit | 1f88b516c54bf39058785d16dacdb3b0c5262b04 (patch) | |
tree | 72ac70255b2b3c8be6260b1e45ae6b98d48ed103 /base/logging.cc | |
parent | 05100ec8f5b7926f990c6f61b04331fb4be4e99c (diff) | |
download | chromium_src-1f88b516c54bf39058785d16dacdb3b0c5262b04.zip chromium_src-1f88b516c54bf39058785d16dacdb3b0c5262b04.tar.gz chromium_src-1f88b516c54bf39058785d16dacdb3b0c5262b04.tar.bz2 |
Base: A few more changes to build base.dll
BUG=76996
TEST=none
Review URL: http://codereview.chromium.org/6784002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80104 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/logging.cc')
-rw-r--r-- | base/logging.cc | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/base/logging.cc b/base/logging.cc index e36a168b..e5c8c8d 100644 --- a/base/logging.cc +++ b/base/logging.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -39,10 +39,11 @@ typedef FILE* FileHandle; typedef pthread_mutex_t* MutexHandle; #endif +#include <algorithm> +#include <cstring> #include <ctime> #include <iomanip> -#include <cstring> -#include <algorithm> +#include <ostream> #include "base/base_switches.h" #include "base/command_line.h" @@ -815,3 +816,15 @@ void RawLog(int level, const char* message) { std::ostream& operator<<(std::ostream& out, const wchar_t* wstr) { return out << WideToUTF8(std::wstring(wstr)); } + +namespace base { + +// This was defined at the beginnig of this file. +#undef write + +std::ostream& operator<<(std::ostream& o, const StringPiece& piece) { + o.write(piece.data(), static_cast<std::streamsize>(piece.size())); + return o; +} + +} // namespace base |