Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
games/gracer: fix build with -fno-common
Move a variable definition from header to source file. This fixes the build on FreeBSD 13+. While we are at it, rename patches in accordance with makepatch conventions and add missing dependencies.
- Loading branch information
1 parent
81e3cda
commit acbf6fa
Showing
11 changed files
with
77 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- common/gr_memory.h.orig 2000-03-01 04:27:04 UTC | ||
+++ common/gr_memory.h | ||
@@ -29,7 +29,7 @@ extern "C" { | ||
} | ||
#endif | ||
|
||
-#include <malloc.h> | ||
+#include <stdlib.h> | ||
|
||
#define gr_new(type,num) (type *) malloc (sizeof(type) * (num)) | ||
#define gr_new0(type,num) (type *) __malloc0 (sizeof(type) * (num)) | ||
@@ -64,7 +64,7 @@ void gr_slist_free (GrSList *list); | ||
void gr_dlist_free (GrDList *list); | ||
|
||
#define gr_FOREACH(l,p) \ | ||
- for (; (l) != NULL && ((void *)(p) = (l)->data, 1); (l) = (l)->next) | ||
+ for (; (l) != NULL && ((p) = (l)->data, 1); (l) = (l)->next) | ||
|
||
void gr_ref_incr (GrRef *ref); | ||
void gr_ref_decr (GrRef *ref); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
5 changes: 3 additions & 2 deletions
5
games/gracer/files/patch-ab → games/gracer/files/patch-src_glhash.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- src/gr_world.c.orig 2000-03-01 04:28:24 UTC | ||
+++ src/gr_world.c | ||
@@ -167,8 +167,6 @@ gr_world_check_trigger (GrWorld *world, int side) | ||
case GR_CLINE_B_TO_A: | ||
vehicle->lap_count --; | ||
break; | ||
- | ||
- default: | ||
} | ||
|
||
tlist = entry->triggers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- src/vehicle.c.orig 2023-04-13 00:36:40 UTC | ||
+++ src/vehicle.c | ||
@@ -58,6 +58,8 @@ | ||
|
||
#define SIGN(d) ((d)>=0.0? 1.0:-1.0) | ||
|
||
+extern struct _GrBreakData GrBreak; | ||
+ | ||
static void | ||
next_word (char *str, int *index) | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- src/vehicle.h.orig 2023-04-13 00:36:07 UTC | ||
+++ src/vehicle.h | ||
@@ -65,7 +65,7 @@ typedef struct _GrEngineData GrEngineData; | ||
typedef struct _GrLapHistory GrLapHistory; | ||
typedef struct _GrVehicleData GrVehicleData; | ||
|
||
-struct _GrBreakData { | ||
+extern struct _GrBreakData { | ||
GrRef ref; | ||
|
||
/* constants */ |