On Mon, 4 Jun 2007, James Supancic wrote:
> Even with -fpermissive g++ rejects it. I moved the enum typedef from
> fc_types.h to unit.h (after the enum declaration)

Committed. (Though, actually, I did it the other way around.)

> 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.

That is an ugly hack. Let's just do it right, and rename "class" to, say, 
"unitclass" (or "unit_class"?) throughout the code instead.

   - Per

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

Reply via email to