Re: [Freeciv-Dev] Permission to make freeciv headers standard C/C++ compatible.

2007-06-04 Thread Per I. Mathisen
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

Re: [Freeciv-Dev] Permission to make freeciv headers standard C/C++ compatible.

2007-06-04 Thread James Supancic
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

Re: [Freeciv-Dev] Permission to make freeciv headers standard C/C++ compatible.

2007-06-03 Thread Per I. Mathisen
On Sun, 3 Jun 2007, James Supancic wrote: > I'm working on a C++ GUI for freeciv. I need to make some calls into > the C component of client. The problem I'm running into is that the > freeciv header files are neither standard C or C++ compatible. > > For example: > typedef enum a b; > enum a { A,

Re: [Freeciv-Dev] Permission to make freeciv headers standard C/C++ compatible.

2007-06-03 Thread Vasco Alexandre da Silva Costa
On 6/3/07, James Supancic <[EMAIL PROTECTED]> wrote: I'm working on a C++ GUI for freeciv. I need to make some calls into the C component of client. The problem I'm running into is that the freeciv header files are neither standard C or C++ compatible. For example: typedef enum a b; enum a { A,