aboutsummaryrefslogtreecommitdiffstats
path: root/games/tuxracer
diff options
context:
space:
mode:
authoranholt <anholt@FreeBSD.org>2003-08-18 09:06:33 +0800
committeranholt <anholt@FreeBSD.org>2003-08-18 09:06:33 +0800
commit9f1e32fa01cef5f03be5a4bed254e07d108a3e37 (patch)
treeda6823955b0f95b1950c11505fa76fd3a3a35046 /games/tuxracer
parent834067a62535f97bf33515e244d32770d80254c4 (diff)
downloadfreebsd-ports-gnome-9f1e32fa01cef5f03be5a4bed254e07d108a3e37.tar.gz
freebsd-ports-gnome-9f1e32fa01cef5f03be5a4bed254e07d108a3e37.tar.zst
freebsd-ports-gnome-9f1e32fa01cef5f03be5a4bed254e07d108a3e37.zip
Fix compilation with new GCC (abuse of pasting in macros).
Reported by: bento
Diffstat (limited to 'games/tuxracer')
-rw-r--r--games/tuxracer/files/patch-game_config.c55
1 files changed, 55 insertions, 0 deletions
diff --git a/games/tuxracer/files/patch-game_config.c b/games/tuxracer/files/patch-game_config.c
new file mode 100644
index 000000000000..4cc58d2a829c
--- /dev/null
+++ b/games/tuxracer/files/patch-game_config.c
@@ -0,0 +1,55 @@
+--- src/game_config.c.orig Sun Aug 17 17:59:46 2003
++++ src/game_config.c Sun Aug 17 18:02:15 2003
+@@ -114,26 +114,26 @@
+ */
+
+ #define INIT_PARAM( nam, val, typename, commnt ) \
+- Params. ## nam ## .loaded = False; \
+- Params. ## nam ## .name = #nam; \
+- Params. ## nam ## .deflt. ## typename ## _val = val; \
+- Params. ## nam ## .comment = commnt;
++ Params.nam.loaded = False; \
++ Params.nam.name = #nam; \
++ Params.nam.deflt.typename ## _val = val; \
++ Params.nam.comment = commnt;
+
+ #define INIT_PARAM_STRING( nam, val, commnt ) \
+ INIT_PARAM( nam, val, string, commnt ); \
+- Params. ## nam ## .type = PARAM_STRING;
++ Params.nam.type = PARAM_STRING;
+
+ #define INIT_PARAM_CHAR( nam, val, commnt ) \
+ INIT_PARAM( nam, val, char, commnt ); \
+- Params. ## nam ## .type = PARAM_CHAR;
++ Params.nam.type = PARAM_CHAR;
+
+ #define INIT_PARAM_INT( nam, val, commnt ) \
+ INIT_PARAM( nam, val, int, commnt ); \
+- Params. ## nam ## .type = PARAM_INT;
++ Params.nam.type = PARAM_INT;
+
+ #define INIT_PARAM_BOOL( nam, val, commnt ) \
+ INIT_PARAM( nam, val, bool, commnt ); \
+- Params. ## nam ## .type = PARAM_BOOL;
++ Params.nam.type = PARAM_BOOL;
+
+
+ /*
+@@ -310,13 +310,13 @@
+ */
+ #define FN_PARAM( name, typename, type ) \
+ type getparam_ ## name() { \
+- if ( !Params. ## name ## .loaded ) { \
+- fetch_param_ ## typename( &( Params. ## name ) ); \
++ if ( !Params.name.loaded ) { \
++ fetch_param_ ## typename( &( Params.name ) ); \
+ } \
+- return Params. ## name ## .val. ## typename ## _val; \
++ return Params.name.val.typename ## _val; \
+ } \
+ void setparam_ ## name( type val) { \
+- set_param_ ## typename( &( Params. ## name ), val ); }
++ set_param_ ## typename( &( Params.name ), val ); }
+
+ #define FN_PARAM_STRING( name ) \
+ FN_PARAM( name, string, char* )