1--- a/src/google/protobuf/stubs/port.h 2+++ b/src/google/protobuf/stubs/port.h 3@@ -216,7 +216,7 @@ inline void GOOGLE_UNALIGNED_STORE64(void *p, uint64 v) { 4 __sanitizer_unaligned_store64(p, v); 5 } 6 7-#elif GOOGLE_PROTOBUF_USE_UNALIGNED 8+#elif defined(GOOGLE_PROTOBUF_USE_UNALIGNED) && GOOGLE_PROTOBUF_USE_UNALIGNED 9 10 #define GOOGLE_UNALIGNED_LOAD16(_p) (*reinterpret_cast<const uint16 *>(_p)) 11 #define GOOGLE_UNALIGNED_LOAD32(_p) (*reinterpret_cast<const uint32 *>(_p)) 12