OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #if defined(WEBRTC_WIN) | 11 #if defined(WEBRTC_WIN) |
12 #if !defined(WIN32_LEAN_AND_MEAN) | 12 #if !defined(WIN32_LEAN_AND_MEAN) |
13 #define WIN32_LEAN_AND_MEAN | 13 #define WIN32_LEAN_AND_MEAN |
14 #endif | 14 #endif |
15 #include <windows.h> | 15 #include <windows.h> |
| 16 #if _MSC_VER < 1900 |
16 #define snprintf _snprintf | 17 #define snprintf _snprintf |
| 18 #endif |
17 #undef ERROR // wingdi.h | 19 #undef ERROR // wingdi.h |
18 #endif | 20 #endif |
19 | 21 |
20 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) | 22 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) |
21 #include <CoreServices/CoreServices.h> | 23 #include <CoreServices/CoreServices.h> |
22 #elif defined(WEBRTC_ANDROID) | 24 #elif defined(WEBRTC_ANDROID) |
23 #include <android/log.h> | 25 #include <android/log.h> |
24 // Android has a 1024 limit on log inputs. We use 60 chars as an | 26 // Android has a 1024 limit on log inputs. We use 60 chars as an |
25 // approx for the header/tag portion. | 27 // approx for the header/tag portion. |
26 // See android/system/core/liblog/logd_write.c | 28 // See android/system/core/liblog/logd_write.c |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 } | 549 } |
548 | 550 |
549 if (state) { | 551 if (state) { |
550 state->unprintable_count_[input] = consecutive_unprintable; | 552 state->unprintable_count_[input] = consecutive_unprintable; |
551 } | 553 } |
552 } | 554 } |
553 | 555 |
554 ////////////////////////////////////////////////////////////////////// | 556 ////////////////////////////////////////////////////////////////////// |
555 | 557 |
556 } // namespace rtc | 558 } // namespace rtc |
OLD | NEW |