From: MenTaLguY Date: 2007-07-31T03:29:36+09:00 Subject: Re: BUG(?): 1.8.6-p36 broke compiling C++ extensions --=-OyEdqBHxFphKDJBqz03n Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2007-07-31 at 02:24 +0900, Jeremy Henty wrote: > OK, the problem is that g++ requires you to declare enum's before > using them and 1.8.6-p36 added some declarations to intern.h that use > an enum defined in node.h . Everything works OK (as far as I can > tell) if I patch intern.h to #include node.h . (Patch supplied at the > end.) >=20 > Is there any way to work around this without patching Ruby? I can't > find one so far. Would forward-declaring the enum before including either header work? -mental --=-OyEdqBHxFphKDJBqz03n Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGrie5SuZBmZzm14ERAq+NAJ9Lu6DMPR5oDG0Ap2vR9aus6Bh0LQCg22XU fviPhq4FX5sO0ayulBx6soU= =KdpQ -----END PGP SIGNATURE----- --=-OyEdqBHxFphKDJBqz03n--