-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove all uses of the OF macro from minizip #88
Conversation
|
I don't wanna do that much changes to the minizip src to make updating to |
|
Your fix from two weeks ago caused trouble for me because But I thought removing this altogether is cleaner. I'll have a look what's the root cause for this. |
|
Well, salamanderrake claimed that gentoo replaced OF with _Z_OF - so #ifndef OF Hack. |
|
This is related to Gentoo Bug 383179, and this snippet from the relevant ebuild is supposed to prefix the macros with I don't known where and why this fails for me (as I said, using |
|
Ok, I'll push that workaround in the next days. Thanks for investigating :) |
|
I've updated the pull request. There's an interesting amount of bitching going on in the comments of the Gentoo bug, whew. But the zlib maintainer says what I thought when submitting the original pull request:
So if you want to reconsider my originally proposed changes, I still have them around. ;-) |
|
As I said, I wanna be able to easily update to newer minizip versions in |
Fix building on Gentoo by providing OF() macro if necessary .. I hope this time it works for everyone.
Could it be possible to make minizip optional at compile/build time? I'm trying to push the engine in RPMFusion and I need to unbundle the minizip sources. Maybe something along the lines of the jpeg function; where compilation asks for system libraries and just adds the missing functions or like ioquake make switches for selecting between bundled / system libraries. Thanks. |
|
The filesystem in Doom 3 needs to be able to open zip files, so minizip can't be optional. However, I think it would be possible to use icculus' PhysicsFS instead without breaking game compatibility. It would require changing idFilesystem, though. |
|
The bundled minizip is patched for doom3, so: No. 👅 |
I was unable to dig out when this macro was removed from zlib, or if that's a Gentoo speciality, but this breaks again on an up-to-date Gentoo, and per
the macro is not required since decades.