Author: cazfi
Date: Sun Jul 31 15:31:28 2016
New Revision: 33396

URL: http://svn.gna.org/viewcvs/freeciv?rev=33396&view=rev
Log:
Made settings.c to compile with tcc.

See patch #7519

Modified:
    branches/S2_6/server/settings.c

Modified: branches/S2_6/server/settings.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/settings.c?rev=33396&r1=33395&r2=33396&view=diff
==============================================================================
--- branches/S2_6/server/settings.c     (original)
+++ branches/S2_6/server/settings.c     Sun Jul 31 15:31:28 2016
@@ -1216,8 +1216,8 @@
                  _default)                                                  \
   {name, sclass, to_client, short_help, extra_help, NULL, SSET_BOOL,        \
       scateg, slevel,                                                       \
-      {.boolean = {&value, _default, func_validate, bool_name,              \
-                   FALSE}}, func_action, FALSE},
+      .boolean = {&value, _default, func_validate, bool_name,               \
+                   FALSE}, func_action, FALSE},
 
 #define GEN_INT(name, value, sclass, scateg, slevel, to_client,         \
                 short_help, extra_help, func_help,                      \
@@ -1225,8 +1225,8 @@
                 _min, _max, _default)                                   \
   {name, sclass, to_client, short_help, extra_help, func_help, SSET_INT, \
       scateg, slevel,                                                   \
-      {.integer = {(int *) &value, _default, _min, _max, func_validate, \
-                   0}},                                                 \
+      .integer = {(int *) &value, _default, _min, _max, func_validate,  \
+                   0},                                                  \
       func_action, FALSE},
 
 #define GEN_STRING(name, value, sclass, scateg, slevel, to_client,      \
@@ -1234,7 +1234,7 @@
                    _default)                                            \
   {name, sclass, to_client, short_help, extra_help, NULL, SSET_STRING,  \
       scateg, slevel,                                                   \
-      {.string = {value, _default, sizeof(value), func_validate, ""}},  \
+      .string = {value, _default, sizeof(value), func_validate, ""},    \
       func_action, FALSE},
 
 #define GEN_ENUM(name, value, sclass, scateg, slevel, to_client,            \
@@ -1242,17 +1242,17 @@
                  func_action, func_name, _default)                          \
   { name, sclass, to_client, short_help, extra_help, func_help, SSET_ENUM,  \
       scateg, slevel,                                                       \
-      { .enumerator = {  &value, sizeof(value), _default,                   \
-                         func_validate,                                     \
-       (val_name_func_t) func_name, 0 }}, func_action, FALSE},
+       .enumerator = {  &value, sizeof(value), _default,                    \
+                        func_validate,                                      \
+       (val_name_func_t) func_name, 0 }, func_action, FALSE},
 
 #define GEN_BITWISE(name, value, sclass, scateg, slevel, to_client,         \
                    short_help, extra_help, func_validate, func_action,      \
                    func_name, _default)                                     \
   { name, sclass, to_client, short_help, extra_help, NULL, SSET_BITWISE,    \
     scateg, slevel,                                                         \
-     { .bitwise = { (unsigned *) (void *) &value, _default, func_validate,  \
-       func_name, 0 }}, func_action, FALSE},
+      .bitwise = { (unsigned *) (void *) &value, _default, func_validate,   \
+       func_name, 0 }, func_action, FALSE},
 
 /* game settings */
 static struct setting settings[] = {


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

Reply via email to