OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This file overrides the inclusion of talk/base/basictypes.h to remove | 5 // This file overrides the inclusion of talk/base/basictypes.h to remove |
6 // collisions with Chromium's base/basictypes.h. We then add back a few | 6 // collisions with Chromium's base/basictypes.h. We then add back a few |
7 // items that Chromium's version doesn't provide, but libjingle expects. | 7 // items that Chromium's version doesn't provide, but libjingle expects. |
8 | 8 |
9 #ifndef OVERRIDES_TALK_BASE_BASICTYPES_H__ | 9 #ifndef OVERRIDES_TALK_BASE_BASICTYPES_H__ |
10 #define OVERRIDES_TALK_BASE_BASICTYPES_H__ | 10 #define OVERRIDES_TALK_BASE_BASICTYPES_H__ |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #ifdef WIN32 | 53 #ifdef WIN32 |
54 #define alignof(t) __alignof(t) | 54 #define alignof(t) __alignof(t) |
55 #else // !WIN32 | 55 #else // !WIN32 |
56 #define alignof(t) __alignof__(t) | 56 #define alignof(t) __alignof__(t) |
57 #endif // !WIN32 | 57 #endif // !WIN32 |
58 #define IS_ALIGNED(p, a) (0==(reinterpret_cast<uintptr_t>(p) & ((a)-1))) | 58 #define IS_ALIGNED(p, a) (0==(reinterpret_cast<uintptr_t>(p) & ((a)-1))) |
59 #define ALIGNP(p, t) \ | 59 #define ALIGNP(p, t) \ |
60 (reinterpret_cast<uint8*>(((reinterpret_cast<uintptr_t>(p) + \ | 60 (reinterpret_cast<uint8*>(((reinterpret_cast<uintptr_t>(p) + \ |
61 ((t)-1)) & ~((t)-1)))) | 61 ((t)-1)) & ~((t)-1)))) |
62 | 62 |
| 63 // LIBJINGLE_DEFINE_STATIC_LOCAL() is a libjingle's copy |
| 64 // of CR_DEFINE_STATIC_LOCAL(). |
| 65 #define LIBJINGLE_DEFINE_STATIC_LOCAL(type, name, arguments) \ |
| 66 CR_DEFINE_STATIC_LOCAL(type, name, arguments) |
| 67 |
63 #endif // OVERRIDES_TALK_BASE_BASICTYPES_H__ | 68 #endif // OVERRIDES_TALK_BASE_BASICTYPES_H__ |
OLD | NEW |