mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-26 00:33:45 +02:00
Fix PhysFS compilation errors in libretro builds
This commit is contained in:
parent
a44f3b16b3
commit
973b33e3e5
3 changed files with 17 additions and 0 deletions
1
.github/workflows/autobuild.yml
vendored
1
.github/workflows/autobuild.yml
vendored
|
@ -727,6 +727,7 @@ jobs:
|
|||
echo "[binaries]" | tee -a ${{ runner.temp }}/cross.ini
|
||||
echo "c = '${{ runner.temp }}/cc'" | tee -a ${{ runner.temp }}/cross.ini
|
||||
echo "cpp = '${{ runner.temp }}/c++'" | tee -a ${{ runner.temp }}/cross.ini
|
||||
echo "objc = '${{ runner.temp }}/cc'" | tee -a ${{ runner.temp }}/cross.ini
|
||||
echo "ar = 'ar'" | tee -a ${{ runner.temp }}/cross.ini
|
||||
echo "strip = 'strip'" | tee -a ${{ runner.temp }}/cross.ini
|
||||
echo "[host_machine]" | tee -a ${{ runner.temp }}/cross.ini
|
||||
|
|
15
subprojects/packagefiles/physfs.patch
Normal file
15
subprojects/packagefiles/physfs.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
diff --git a/src/physfs_platforms.h b/src/physfs_platforms.h
|
||||
--- a/src/physfs_platforms.h
|
||||
+++ b/src/physfs_platforms.h
|
||||
@@ -73,7 +73,10 @@
|
||||
# define PHYSFS_PLATFORM_UNIX 1
|
||||
# define PHYSFS_PLATFORM_POSIX 1
|
||||
#else
|
||||
-# error Unknown platform.
|
||||
+# warning Unknown platform.
|
||||
+# define PHYSFS_PLATFORM_UNIX 1
|
||||
+# define PHYSFS_PLATFORM_POSIX 1
|
||||
+# define PHYSFS_NO_CDROM_SUPPORT 1
|
||||
#endif
|
||||
|
||||
#endif /* include-once blocker. */
|
|
@ -2,3 +2,4 @@
|
|||
url = https://github.com/icculus/physfs
|
||||
revision = release-3.2.0
|
||||
depth = 1
|
||||
diff_files = physfs.patch
|
||||
|
|
Loading…
Add table
Reference in a new issue