-
Notifications
You must be signed in to change notification settings - Fork 138
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
Miniz/zlib #46
Comments
This looks good so I made a change in the recent commit. Thank you for reporting an issue! |
I've also made similar changes on my side, where we have other modules in our code relying on miniz already. We've basically removed lines 475 to 6909, and now only rely on:
|
Okay, I'm considering to introduce |
I don't see that it's necessary to add a new define, it's simpler just to disable the embedded version and require that the user included the header (or a compatible one) prior to including tinyexr.h. This relies on Miniz keeping a zlib-compatible interface but that's probably a safe assumption. A key point for me is that I'd prefer not to have to modify tinyexr.h at all so that I can just drop in any updates. |
I see. Let me give some time to figure out what is the best way to solve the issue with minimal modification. |
Do you need miniz specific API for your project, @zigguratvertigo? If you are ok to use zlib-compatible API, as @john-chapman suggests, there is no modification required anymore and you can include external
|
@syoyo One additional problem I noticed: there's a block of |
I see > there's a block of #pragma warning starting line 4377 which is disabled with TINYEXR_USE_MINIZ, but probably shouldn't be. |
Fixed wrong pragma warning push/pop pair in this commit: 13a6b15 |
Plese reopen the issue if you still get a problem. |
I am already using Miniz in my project; I therefore want to do this to disable the embedded version of Miniz:
However, tinyexr.h wants to include zlib.h:
My opinion is that it would be preferable to remove this dependency and leave it up to the user to include their zlib-compatible header (either zlib.h or miniz.h, as in my case) before including tinyexr.h.
The text was updated successfully, but these errors were encountered: