-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix: conditional cstdio include in vk_mem_alloc #8265
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
Conversation
|
Is this meant to reduce the size of the lib? |
It's something I noticed when I was comparing the upstream code vs the vendored third party. It's mostly for consistency, but it could benefit the lib size. |
I think the proper way to address this is actually to update our |
|
let's worry about a proper update later |
|
@poweifeng @aminya This commit causes trouble with older clang versions. the error is "error: templates must have C++ linkage". This is because the include was changed from The fix is to wither include stdio.h or to close the c linkage like the reference does. Would you be so kind to do either of those? it's a "five minute" fix. Otherwise pls let me know which one you prefer and I can create a PR and we can go through the bureaucracy of it all - no problem :) |
I'm not aware of the minimum Clang version requirements for Filament. If it's causing issues, it might be better that you create a PR with more details. |
Thanks for your quick reply. I created the following PR: https://github.com/google/filament/pull/9562 - the change is extremely trivial and simply gets the header file closer to the upstream reference. The explanation of the issue should be easy to follow. I have signed the CLA. Thank you! |
Based on https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/blob/05973d8aeb1a4d12f59aadfb86d20decadba82d1/include/vk_mem_alloc.h#L2842