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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/enc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

#include <mutex> // NOLINT
#include <new>

Expand Down
2 changes: 2 additions & 0 deletions src/jpeg_tools.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
// Author: Skal ([email protected])

#include <string.h> // for memset

#include <cstdlib>
#include <vector>

#include "sjpegi.h"
Expand Down
Loading