Skip to content
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

add missing <cstdlib> include #130

Merged
merged 1 commit into from
Nov 7, 2024
Merged

Conversation

jzern
Copy link
Contributor

@jzern jzern commented Nov 6, 2024

needed for uses of std::abs

PiperOrigin-RevId: 693699945

needed for uses of `std::abs`

PiperOrigin-RevId: 693699945
@jzern jzern requested a review from skal65535 November 6, 2024 19:04
@@ -22,6 +22,7 @@
#include <float.h> // for FLT_MAX
#include <stdint.h>

#include <cstdlib>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably some more can be done here with iwyu. I'm leaving stdlib.h in this commit to match the change, though I think it's been widely discussed that it would be nearly impossible to remove putting things in the global namespace in the C++ versions of the headers.

@jzern
Copy link
Contributor Author

jzern commented Nov 6, 2024

cc: @vrabaud

@jzern jzern merged commit 91d2051 into webmproject:main Nov 7, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants