mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
games/fs2open: fix build on big-endian architectures
Uncomment necessary variables.
This commit is contained in:
parent
ed34cd5c57
commit
3bbbe62d95
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=525709
20
games/fs2open/files/patch-code_model_modelread.cpp
Normal file
20
games/fs2open/files/patch-code_model_modelread.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
--- code/model/modelread.cpp.orig 2020-02-10 13:38:06 UTC
|
||||
+++ code/model/modelread.cpp
|
||||
@@ -5341,7 +5341,7 @@ void swap_bsp_sortnorms( polymodel * pm, ubyte * p )
|
||||
}
|
||||
#endif // BIG_ENDIAN
|
||||
|
||||
-void swap_bsp_data( polymodel * /*pm*/, void * /*model_ptr*/ )
|
||||
+void swap_bsp_data( polymodel *pm, void *model_ptr )
|
||||
{
|
||||
#if BYTE_ORDER == BIG_ENDIAN
|
||||
ubyte *p = (ubyte *)model_ptr;
|
||||
@@ -5397,7 +5397,7 @@ void swap_bsp_data( polymodel * /*pm*/, void * /*mode
|
||||
#endif
|
||||
}
|
||||
|
||||
-void swap_sldc_data(ubyte * /*buffer*/)
|
||||
+void swap_sldc_data(ubyte * buffer)
|
||||
{
|
||||
#if BYTE_ORDER == BIG_ENDIAN
|
||||
char *type_p = (char *)(buffer);
|
Loading…
Reference in New Issue
Block a user