c++ - PhysicsFS 是平台独立的吗?

标签 c++ c portability platform-independent virtualfilesystem

我正在考虑在我的游戏引擎项目中使用 PhysicsFS,但我想首先确保它完全独立于平台。那是因为我想在完成 Windows 代码(例如 Wii Homebrew)后将我的引擎移植到一些相当晦涩的平台。

最佳答案

根据开发人员在 their site 上提供的官方规范它:

Compiles/runs on GNU/Linux (x86, PPC, MIPS, Sparc, Alpha, Itanium, and x86-64 tested; gcc). Compiles/runs on Windows, Win95 and later (x86 tested; Visual C++, Visual Studio, Cygwin, and MinGW). Compiles/runs on Mac OS X (x86 and PPC tested; XCode).

甚至

May compile and run elsewhere with little to no modification. Success stories and patches are welcome.

所以答案是肯定的,它与平台无关。

2011 年 4 月 20 日更新

按照@rubenvb 的建议,我最好将其定义为跨平台 库。这是因为 PhysicsFS 库利用 #ifdefs 并为 Windows、BeOS/Haiku、Mac OS X、OS/2、PocketPC、POSIX 和 UNIX 平台提供特定的实现。

关于c++ - PhysicsFS 是平台独立的吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5688902/

相关文章:

c - 这些用于可移植性的 C#ifdef 是否过时了?

c++ - libstdc++ 是否符合 MISRA C++?

c++ - 没有 std 命名空间

c - Strtok + If 语句

c - select 中使用的 fd_set 如何检查位掩码?

c - C 中的可移植性问题

c++ - 并行搜索不同的值?

c++ - 这段代码不应该根据标准中的 12.8p2 编译吗?

c - 为什么 1987 Korn oneliner 打印的是 unix?

c++ - 在文件可移植性问题中存储 32 位 float