| --- a/src/google/protobuf/stubs/port.h | |
| +++ b/src/google/protobuf/stubs/port.h | |
| @@ -216,7 +216,7 @@ inline void GOOGLE_UNALIGNED_STORE64(void *p, uint64 v) { | |
| __sanitizer_unaligned_store64(p, v); | |
| } | |
| -#elif GOOGLE_PROTOBUF_USE_UNALIGNED | |
| +#elif defined(GOOGLE_PROTOBUF_USE_UNALIGNED) && GOOGLE_PROTOBUF_USE_UNALIGNED | |
| #define GOOGLE_UNALIGNED_LOAD16(_p) (*reinterpret_cast<const uint16 *>(_p)) | |
| #define GOOGLE_UNALIGNED_LOAD32(_p) (*reinterpret_cast<const uint32 *>(_p)) |