OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/logging.h" | 5 #include "base/logging.h" |
6 | 6 |
7 #include <limits.h> | 7 #include <limits.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #define STDERR_FILENO 2 | 23 #define STDERR_FILENO 2 |
24 #elif defined(OS_MACOSX) | 24 #elif defined(OS_MACOSX) |
25 #include <asl.h> | 25 #include <asl.h> |
26 #include <CoreFoundation/CoreFoundation.h> | 26 #include <CoreFoundation/CoreFoundation.h> |
27 #include <mach/mach.h> | 27 #include <mach/mach.h> |
28 #include <mach/mach_time.h> | 28 #include <mach/mach_time.h> |
29 #include <mach-o/dyld.h> | 29 #include <mach-o/dyld.h> |
30 #elif defined(OS_POSIX) | 30 #elif defined(OS_POSIX) |
31 #if defined(OS_NACL) | 31 #if defined(OS_NACL) |
32 #include <sys/time.h> // timespec doesn't seem to be in <time.h> | 32 #include <sys/time.h> // timespec doesn't seem to be in <time.h> |
33 #else | |
34 #include <sys/syscall.h> | |
35 #endif | 33 #endif |
36 #include <time.h> | 34 #include <time.h> |
37 #endif | 35 #endif |
38 | 36 |
39 #if defined(OS_POSIX) | 37 #if defined(OS_POSIX) |
40 #include <errno.h> | 38 #include <errno.h> |
41 #include <paths.h> | 39 #include <paths.h> |
42 #include <pthread.h> | 40 #include <pthread.h> |
43 #include <stdio.h> | 41 #include <stdio.h> |
44 #include <stdlib.h> | 42 #include <stdlib.h> |
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
910 BASE_EXPORT void LogErrorNotReached(const char* file, int line) { | 908 BASE_EXPORT void LogErrorNotReached(const char* file, int line) { |
911 LogMessage(file, line, LOG_ERROR).stream() | 909 LogMessage(file, line, LOG_ERROR).stream() |
912 << "NOTREACHED() hit."; | 910 << "NOTREACHED() hit."; |
913 } | 911 } |
914 | 912 |
915 } // namespace logging | 913 } // namespace logging |
916 | 914 |
917 std::ostream& std::operator<<(std::ostream& out, const wchar_t* wstr) { | 915 std::ostream& std::operator<<(std::ostream& out, const wchar_t* wstr) { |
918 return out << (wstr ? base::WideToUTF8(wstr) : std::string()); | 916 return out << (wstr ? base::WideToUTF8(wstr) : std::string()); |
919 } | 917 } |
OLD | NEW |