C-family : Fix a C++ ODR violation [PR97854].
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 16 Nov 2020 19:33:35 +0000 (19:33 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Mon, 16 Nov 2020 21:38:41 +0000 (21:38 +0000)
commit814e016318646d06b1662219cc716d502b76d8ce
tree674dfec22e6811aec93a743563f371766c36c70b
parent0c81ccc3d87098b93b0e6a2dd76815e4d6e78ff0
C-family : Fix a C++ ODR violation [PR97854].

The changes in r11-4799 introduced a dummy enum rid type with
a different initial member name to the actual version (an ODR
violation).  Fixed by including the header declaring the
actual type.

gcc/c-family/ChangeLog:

PR objc/97854
* stub-objc.c: Include c-common.h to declare enum rid.
gcc/c-family/stub-objc.c