Update port.h to include <typeinfo> unconditionally

This should fix #12412 by ensuring that we don't refer to `PROTOBUF_RTTI`
before it is defined.

PiperOrigin-RevId: 522657207
pull/12428/head
Adam Cozzette 2 years ago committed by Copybara-Service
parent defff5c2b1
commit 8a84914cfd
  1. 3
      src/google/protobuf/port.h

@ -42,10 +42,7 @@
#include <new>
#include <string>
#include <type_traits>
#if PROTOBUF_RTTI
#include <typeinfo>
#endif
#include "absl/meta/type_traits.h"

Loading…
Cancel
Save