diff --git a/webrtc/base/basictypes.h b/webrtc/base/basictypes.h index 8c6909497d..7649a43f85 100644 --- a/webrtc/base/basictypes.h +++ b/webrtc/base/basictypes.h @@ -123,7 +123,7 @@ namespace rtc { #define ALIGNP(p, t) \ (reinterpret_cast(((reinterpret_cast(p) + \ ((t) - 1)) & ~((t) - 1)))) -#define IS_ALIGNED(p, a) (!((uintptr_t)(p) & ((a) - 1))) +#define RTC_IS_ALIGNED(p, a) (!((uintptr_t)(p) & ((a) - 1))) // Use these to declare and define a static local variable (static T;) so that // it is leaked so that its destructors are not called at exit. diff --git a/webrtc/overrides/webrtc/base/basictypes.h b/webrtc/overrides/webrtc/base/basictypes.h index cd93d06ed7..c7cec5e7a4 100644 --- a/webrtc/overrides/webrtc/base/basictypes.h +++ b/webrtc/overrides/webrtc/base/basictypes.h @@ -95,7 +95,7 @@ const int kForever = -1; #else // !WEBRTC_WIN #define alignof(t) __alignof__(t) #endif // !WEBRTC_WIN -#define IS_ALIGNED(p, a) (0==(reinterpret_cast(p) & ((a)-1))) +#define RTC_IS_ALIGNED(p, a) (0==(reinterpret_cast(p) & ((a)-1))) #define ALIGNP(p, t) \ (reinterpret_cast(((reinterpret_cast(p) + \ ((t)-1)) & ~((t)-1))))