mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
games/egoboo: fix build on big-endian architectures
md2.c:514:42: warning: implicit declaration of function 'SDL_swap32' is invalid in C99 [-Wimplicit-function-declaration] cmd->data[i].index = SDL_swap32( cmd->data[i].s ); ld: error: undefined symbol: SDL_swap32 >>> referenced by md2.c >>> md2.o:(md2_load) cc: error: linker command failed with exit code 1 (use -v to see invocation)
This commit is contained in:
parent
b951f42190
commit
4c9a857a2a
11
games/egoboo/files/patch-src_game_md2.c
Normal file
11
games/egoboo/files/patch-src_game_md2.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/game/md2.c.orig 2021-07-15 21:58:55 UTC
|
||||
+++ src/game/md2.c
|
||||
@@ -511,7 +511,7 @@ MD2_Model_t* md2_load( const char * szFilename, MD2_Mo
|
||||
int i;
|
||||
for ( i = 0; i < cmd->command_count; i++ )
|
||||
{
|
||||
- cmd->data[i].index = SDL_swap32( cmd->data[i].s );
|
||||
+ cmd->data[i].index = SDL_Swap32( cmd->data[i].s );
|
||||
cmd->data[i].s = ENDIAN_FLOAT( cmd->data[i].s );
|
||||
cmd->data[i].t = ENDIAN_FLOAT( cmd->data[i].t );
|
||||
};
|
Loading…
Reference in New Issue
Block a user