• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef SDCH_LOGGING_FORWARD_H_
6 #define SDCH_LOGGING_FORWARD_H_
7 
8 // Define open-vcdiff's logging.h header guard, so that it doesn't get used.
9 #define OPEN_VCDIFF_LOGGING_H_
10 
11 #include "base/logging.h"
12 
13 // open-vcdiff's logging.h includes iostream, which adds static initializers
14 // to several compilation units. To prevent this, provide this replacement
15 // header which forwards open-vcdiffs logging macros to chromium's base logging
16 // mechanism.
17 #define VCD_WARNING LOG(WARNING)
18 #define VCD_ERROR LOG(ERROR)
19 #define VCD_DFATAL LOG(DFATAL)
20 #define VCD_ENDL "\n"
21 
22 #endif  // SDCH_LOGGING_FORWARD_H_
23