svn commit: r525709 - head/games/fs2open/files

Piotr Kubaj pkubaj at FreeBSD.org
Mon Feb 10 14:37:52 UTC 2020


Author: pkubaj
Date: Mon Feb 10 14:37:51 2020
New Revision: 525709
URL: https://svnweb.freebsd.org/changeset/ports/525709

Log:
  games/fs2open: fix build on big-endian architectures
  
  Uncomment necessary variables.

Added:
  head/games/fs2open/files/patch-code_model_modelread.cpp   (contents, props changed)

Added: head/games/fs2open/files/patch-code_model_modelread.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/fs2open/files/patch-code_model_modelread.cpp	Mon Feb 10 14:37:51 2020	(r525709)
@@ -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);


More information about the svn-ports-all mailing list