mirror of https://github.com/google/snappy.git
Work around an issue where some compilers interpret <:: as a trigraph.
Also correct the namespace name.
This commit is contained in:
parent
e7d2818d1e
commit
0800b1e4c7
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue