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, B };
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
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, B };
When this is compiled with g++ or 'gcc
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,