Even with -fpermissive g++ rejects it. I moved the enum typedef from
fc_types.h to unit.h (after the enum declaration) and did 'make clean
&& make' and everything builds fine.

It looks like the attached patch does what I need (as far as I know at
this point). Basically I use an #ifdef __cplusplus to change the name
of identifiers that that conflict with C++ reserved keywords only when
building with a C++ compiler. This way none of the freeciv .c files
have to be modified.

Thank you for your time,
James Steven Supancic III

Attachment: freecivcppcompt.patch
Description: Binary data

_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to