Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2005:
[Freeciv-Dev] (PR#11794) Compile problem freeciv-2.0.0-beta6 on IRIX 6.5
Home

[Freeciv-Dev] (PR#11794) Compile problem freeciv-2.0.0-beta6 on IRIX 6.5

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: behrens@xxxxxxxxxx
Subject: [Freeciv-Dev] (PR#11794) Compile problem freeciv-2.0.0-beta6 on IRIX 6.5.26 c99 problem
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 9 Jan 2005 19:48:35 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11794 >

> [behrens@xxxxxxxxxx - Tue Jan 04 22:06:08 2005]:
> 
> Hello, i have problem compiling freeciv-2.0.0-beta6 on IRIX 6.5.25
with the
> nativ mips cc compilier. It looks like that the c99 compiler doesnt
> understand ... :|

Does this patch fix the problem?

-jason

? gmon.out
Index: client/agents/cma_fec.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/agents/cma_fec.c,v
retrieving revision 1.28
diff -u -r1.28 cma_fec.c
--- client/agents/cma_fec.c     25 Nov 2004 07:20:02 -0000      1.28
+++ client/agents/cma_fec.c     10 Jan 2005 03:48:02 -0000
@@ -375,40 +375,40 @@
  int i;
  struct cm_parameter parameters[] = {
    { /* max food */
-     minimal_surplus: {0, 0, 0, 0, 0, 0},
-     require_happy: FALSE,
-     allow_disorder: FALSE,
-     allow_specialists: TRUE,
-     factor: {10, 1, 1, 1, 1, 1},
-     happy_factor: 0
+     .minimal_surplus = {0, 0, 0, 0, 0, 0},
+     .require_happy = FALSE,
+     .allow_disorder = FALSE,
+     .allow_specialists = TRUE,
+     .factor = {10, 1, 1, 1, 1, 1},
+     .happy_factor = 0
    }, { /* max prod */
-     minimal_surplus: {0, 0, 0, 0, 0, 0},
-     require_happy: FALSE,
-     allow_disorder: FALSE,
-     allow_specialists: TRUE,
-     factor: {1, 10, 1, 1, 1, 1},
-     happy_factor: 0
+     .minimal_surplus = {0, 0, 0, 0, 0, 0},
+     .require_happy = FALSE,
+     .allow_disorder = FALSE,
+     .allow_specialists = TRUE,
+     .factor = {1, 10, 1, 1, 1, 1},
+     .happy_factor = 0
    }, { /* max gold */
-     minimal_surplus: {0, 0, 0, 0, 0, 0},
-     require_happy: FALSE,
-     allow_disorder: FALSE,
-     allow_specialists: TRUE,
-     factor: {1, 1, 1, 10, 1, 1},
-     happy_factor: 0
+     .minimal_surplus = {0, 0, 0, 0, 0, 0},
+     .require_happy = FALSE,
+     .allow_disorder = FALSE,
+     .allow_specialists = TRUE,
+     .factor = {1, 1, 1, 10, 1, 1},
+     .happy_factor = 0
    }, { /* max science */
-     minimal_surplus: {0, 0, 0, 0, 0, 0},
-     require_happy: FALSE,
-     allow_disorder: FALSE,
-     allow_specialists: TRUE,
-     factor: {1, 1, 1, 1, 1, 10},
-     happy_factor: 0
+     .minimal_surplus = {0, 0, 0, 0, 0, 0},
+     .require_happy = FALSE,
+     .allow_disorder = FALSE,
+     .allow_specialists = TRUE,
+     .factor = {1, 1, 1, 1, 1, 10},
+     .happy_factor = 0
    }, { /* very happy */
-     minimal_surplus: {0, 0, 0, 0, 0, 0},
-     require_happy: FALSE,
-     allow_disorder: FALSE,
-     allow_specialists: TRUE,
-     factor: {1, 1, 1, 1, 1, 1},
-     happy_factor: 25
+     .minimal_surplus = {0, 0, 0, 0, 0, 0},
+     .require_happy = FALSE,
+     .allow_disorder = FALSE,
+     .allow_specialists = TRUE,
+     .factor = {1, 1, 1, 1, 1, 1},
+     .happy_factor = 25
    }   
  };
  const char* names[ARRAY_SIZE(parameters)] = {

[Prev in Thread] Current Thread [Next in Thread]