OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include <ostream> |
| 6 |
5 #include "base/logging.h" | 7 #include "base/logging.h" |
6 | 8 |
7 // We define BZ_NO_STDIO in third_party/bzip2 to remove its internal STDERR | 9 // We define BZ_NO_STDIO in third_party/bzip2 to remove its internal STDERR |
8 // error reporting. This requires us to export our own error handler. | 10 // error reporting. This requires us to export our own error handler. |
9 extern "C" | 11 extern "C" |
10 void bz_internal_error(int errcode) { | 12 void bz_internal_error(int errcode) { |
11 LOG(FATAL) << "bzip2 internal error: " << errcode; | 13 LOG(FATAL) << "bzip2 internal error: " << errcode; |
12 } | 14 } |
OLD | NEW |