Fix PhysFS compilation errors in libretro builds

This commit is contained in:
刘皓 2025-01-25 00:58:11 -05:00
parent a44f3b16b3
commit 973b33e3e5
No known key found for this signature in database
GPG key ID: 7901753DB465B711
3 changed files with 17 additions and 0 deletions

View file

@ -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

View 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. */

View file

@ -2,3 +2,4 @@
url = https://github.com/icculus/physfs
revision = release-3.2.0
depth = 1
diff_files = physfs.patch