OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project 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 "src/ostreams.h" | 5 #include "src/ostreams.h" |
6 | 6 |
7 #if V8_OS_WIN | 7 #if V8_OS_WIN |
| 8 #if _MSC_VER < 1900 |
8 #define snprintf sprintf_s | 9 #define snprintf sprintf_s |
9 #endif | 10 #endif |
| 11 #endif |
10 | 12 |
11 namespace v8 { | 13 namespace v8 { |
12 namespace internal { | 14 namespace internal { |
13 | 15 |
14 OFStreamBase::OFStreamBase(FILE* f) : f_(f) {} | 16 OFStreamBase::OFStreamBase(FILE* f) : f_(f) {} |
15 | 17 |
16 | 18 |
17 OFStreamBase::~OFStreamBase() {} | 19 OFStreamBase::~OFStreamBase() {} |
18 | 20 |
19 | 21 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 return PrintUC16(os, c.value, IsOK); | 75 return PrintUC16(os, c.value, IsOK); |
74 } | 76 } |
75 | 77 |
76 | 78 |
77 std::ostream& operator<<(std::ostream& os, const AsUC16& c) { | 79 std::ostream& operator<<(std::ostream& os, const AsUC16& c) { |
78 return PrintUC16(os, c.value, IsPrint); | 80 return PrintUC16(os, c.value, IsPrint); |
79 } | 81 } |
80 | 82 |
81 } // namespace internal | 83 } // namespace internal |
82 } // namespace v8 | 84 } // namespace v8 |
OLD | NEW |