diff options
author | snj <snj@pkgsrc.org> | 2004-04-11 23:16:27 +0000 |
---|---|---|
committer | snj <snj@pkgsrc.org> | 2004-04-11 23:16:27 +0000 |
commit | 54bcca7b6d14914a1fcd410f9c54b555abf12f7e (patch) | |
tree | 5a6ca0340f1ecf82ba9a405fc358003fe3c026b6 /games/tuxracer/patches | |
parent | c132d83c2088a0a4c24a0c6ae710b54b277bab30 (diff) | |
download | pkgsrc-54bcca7b6d14914a1fcd410f9c54b555abf12f7e.tar.gz |
Convert to buildlink3 and fix build with gcc3. Patch stolen from FreeBSD.
Diffstat (limited to 'games/tuxracer/patches')
-rw-r--r-- | games/tuxracer/patches/patch-aa | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/games/tuxracer/patches/patch-aa b/games/tuxracer/patches/patch-aa new file mode 100644 index 00000000000..509d4f5d88f --- /dev/null +++ b/games/tuxracer/patches/patch-aa @@ -0,0 +1,57 @@ +$NetBSD: patch-aa,v 1.1 2004/04/11 23:16:27 snj Exp $ + +--- 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* ) |