Work around an issue where some compilers interpret <:: as a trigraph.

Also correct the namespace name.
This commit is contained in:
Steinar H. Gunderson 2016-01-08 15:05:44 +01:00
parent e7d2818d1e
commit 0800b1e4c7
1 changed files with 4 additions and 4 deletions

View File

@ -163,15 +163,15 @@ struct Unaligned32Struct {
} // namespace base
#define UNALIGNED_LOAD16(_p) \
((reinterpret_cast<const ::base::internal::Unaligned16Struct *>(_p))->value)
((reinterpret_cast<const ::snappy::base::internal::Unaligned16Struct *>(_p))->value)
#define UNALIGNED_LOAD32(_p) \
((reinterpret_cast<const ::base::internal::Unaligned32Struct *>(_p))->value)
((reinterpret_cast<const ::snappy::base::internal::Unaligned32Struct *>(_p))->value)
#define UNALIGNED_STORE16(_p, _val) \
((reinterpret_cast<::base::internal::Unaligned16Struct *>(_p))->value = \
((reinterpret_cast< ::snappy::base::internal::Unaligned16Struct *>(_p))->value = \
(_val))
#define UNALIGNED_STORE32(_p, _val) \
((reinterpret_cast<::base::internal::Unaligned32Struct *>(_p))->value = \
((reinterpret_cast< ::snappy::base::internal::Unaligned32Struct *>(_p))->value = \
(_val))
// TODO(user): NEON supports unaligned 64-bit loads and stores.