-
Notifications
You must be signed in to change notification settings - Fork 7.8k
zend defines attribute malloc for Win32 as returned pointer are not a… #9118
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
The attribute looks fitting. Unfortunately, Microsoft seems to expect the attribute before the function signature though, whereas for CGG/Clang it's after. Not sure how we should handle that. |
A good idea, but I don't think it can work this way, since |
c058f51
to
7e3c671
Compare
@devnexen Personally I'd prefer if we added a new macro for
|
Sure we could do that way, I wanted not to add more noise to an already noisy declaration set especially some of them don t apply to windows :) but I ll follow your point. |
7e3c671
to
2cc6b23
Compare
Do we really need a new macro here? Wouldn't |
2cc6b23
to
862b4f2
Compare
862b4f2
to
c42a33a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I wasn't aware GCC/Clang accept the attribute in both places.
…liased