Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: sdch/logging_forward.h

Issue 68253006: Remove static initializers introduced by open-vcdiff's logging.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdch/sdch.gyp » ('j') | sdch/sdch.gyp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 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 #include "base/logging.h"
9
10 // open-vcdiff's logging.h includes iostream, which adds static initializers
11 // to several compilation units. To prevent this, provide this replacement
12 // header which forwards open-vcdiffs logging macros to chromium's base logging
13 // mechanism.
14
15 #define VCD_WARNING LOG(WARNING)
16 #define VCD_ERROR LOG(ERROR)
17 #define VCD_DFATAL LOG(DFATAL)
18 #define VCD_ENDL "\n"
19
20 #endif // SDCH_LOGGING_FORWARD_H_
OLDNEW
« no previous file with comments | « no previous file | sdch/sdch.gyp » ('j') | sdch/sdch.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698