Follow-up Comment #5, bug #23001 (project freeciv):

Here is my include. I think I have it right but I'm still getting the error
from shared.h. Have done this how it is intended? I get this same error
pattern when I include in .c file. Sorry, I'm still foggy.

[code]
/*gen_headers*/
#include "freeciv_config.h"

/*utility*/
#include "fcintl.h"
#include "fc_types.h"

#include "requirements.h"

/*convert a string to all uppercase letters*/
const char *strtoupper(char *src);
/* Calculate a halflife as v' = floor(v*pow(0.5, (t/h))) */
int calc_halflife(int value, int halflife, int turns);

int universalcmp(struct universal u1, struct universal u2);
[/code]

I am getting the following error:
[code]
In file included from utils.h:5:0,
                 from utils.c:14:
../../utility/fcintl.h:22:2: error: #error Files including fcintl.h should
also include fc_config.h directly
 #error Files including fcintl.h should also include fc_config.h directly
  ^
In file included from ../../utility/fcintl.h:30:0,
                 from utils.h:5,
                 from utils.c:14:
../../utility/shared.h:30:2: error: #error Files including fcintl.h should
also include fc_config.h directly
 #error Files including fcintl.h should also include fc_config.h directly
[/code]

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?23001>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to