From 81d1ff129f625939df484be2348da63f49db9e53 Mon Sep 17 00:00:00 2001 From: James Harlow Date: Fri, 7 Nov 2003 08:42:11 +0000 Subject: patched to fix bug #32839 --- .../liquidwar/files/liquidwar-gcc-3.3-fix.patch | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 games-strategy/liquidwar/files/liquidwar-gcc-3.3-fix.patch (limited to 'games-strategy/liquidwar/files') diff --git a/games-strategy/liquidwar/files/liquidwar-gcc-3.3-fix.patch b/games-strategy/liquidwar/files/liquidwar-gcc-3.3-fix.patch new file mode 100644 index 000000000000..8ce3938ab357 --- /dev/null +++ b/games-strategy/liquidwar/files/liquidwar-gcc-3.3-fix.patch @@ -0,0 +1,37 @@ +--- liquidwar-5.5.9/src/netconf.c 2003-06-14 23:30:42.000000000 +0200 ++++ liquidwar-5.5.9-new/src/netconf.c 2003-06-14 23:31:59.000000000 +0200 +@@ -70,27 +70,27 @@ + /*==================================================================*/ + + #define LW_NETCONF_CHECK_RANGE(VAL,MAX) \ +-if (config-> ## VAL < 0) \ ++if (config->VAL < 0) \ + { \ + result=0; \ + log_print_str("Error: " #VAL " is "); \ +-log_print_int(config-> ## VAL); \ ++log_print_int(config->VAL); \ + log_println_str(", and should be >= 0"); \ +-config-> ## VAL = 0; \ ++config->VAL = 0; \ + } \ +-if (config-> ## VAL > MAX) \ ++if (config->VAL > MAX) \ + { \ + result=0; \ + log_print_str("Error: " #VAL " is > "); \ +-log_print_int(config-> ## VAL); \ ++log_print_int(config->VAL); \ + log_print_str(", and should be <= "); \ + log_println_int(MAX); \ +-config-> ## VAL = MAX; \ ++config->VAL = MAX; \ + } + + #define LW_NETCONF_PRINT_VALUE(VAL) \ + log_print_str(#VAL " = "); \ +-log_println_int(config-> ## VAL); ++log_println_int(config->VAL); + + /*==================================================================*/ + /* types */ -- cgit v1.2.3-65-gdbad