| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef BASE_FORMAT_MACROS_H_ | 5 #ifndef BASE_FORMAT_MACROS_H_ |
| 6 #define BASE_FORMAT_MACROS_H_ | 6 #define BASE_FORMAT_MACROS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // This file defines the format macros for some integer types. | 9 // This file defines the format macros for some integer types. |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // GCC will concatenate wide and narrow strings correctly, so nothing needs to | 40 // GCC will concatenate wide and narrow strings correctly, so nothing needs to |
| 41 // be done here. | 41 // be done here. |
| 42 #define WidePRId64 PRId64 | 42 #define WidePRId64 PRId64 |
| 43 #define WidePRIu64 PRIu64 | 43 #define WidePRIu64 PRIu64 |
| 44 #define WidePRIx64 PRIx64 | 44 #define WidePRIx64 PRIx64 |
| 45 | 45 |
| 46 #if !defined(PRIuS) | 46 #if !defined(PRIuS) |
| 47 #define PRIuS "zu" | 47 #define PRIuS "zu" |
| 48 #endif | 48 #endif |
| 49 | 49 |
| 50 #if !defined(PRIxS) |
| 51 #define PRIxS "zx" |
| 52 #endif |
| 53 |
| 50 #else // OS_WIN | 54 #else // OS_WIN |
| 51 | 55 |
| 52 #if !defined(PRId64) | 56 #if !defined(PRId64) |
| 53 #define PRId64 "I64d" | 57 #define PRId64 "I64d" |
| 54 #endif | 58 #endif |
| 55 | 59 |
| 56 #if !defined(PRIu64) | 60 #if !defined(PRIu64) |
| 57 #define PRIu64 "I64u" | 61 #define PRIu64 "I64u" |
| 58 #endif | 62 #endif |
| 59 | 63 |
| 60 #if !defined(PRIx64) | 64 #if !defined(PRIx64) |
| 61 #define PRIx64 "I64x" | 65 #define PRIx64 "I64x" |
| 62 #endif | 66 #endif |
| 63 | 67 |
| 64 #define WidePRId64 L"I64d" | 68 #define WidePRId64 L"I64d" |
| 65 #define WidePRIu64 L"I64u" | 69 #define WidePRIu64 L"I64u" |
| 66 #define WidePRIx64 L"I64x" | 70 #define WidePRIx64 L"I64x" |
| 67 | 71 |
| 68 #if !defined(PRIuS) | 72 #if !defined(PRIuS) |
| 69 #define PRIuS "Iu" | 73 #define PRIuS "Iu" |
| 70 #endif | 74 #endif |
| 71 | 75 |
| 76 #if !defined(PRIxS) |
| 77 #define PRIxS "Ix" |
| 78 #endif |
| 79 |
| 72 #endif | 80 #endif |
| 73 | 81 |
| 74 #endif // BASE_FORMAT_MACROS_H_ | 82 #endif // BASE_FORMAT_MACROS_H_ |
| OLD | NEW |