Skip to content

Conversation

@0xENDER
Copy link
Contributor

@0xENDER 0xENDER commented Feb 21, 2025

On Linux, the build is successful because this library is usually included in the headers by default. But on Windows, when using Visual Studio (at least VS 2022 Community - the version I tested this on), the build fails because the "chrono" library is not included by default.

To avoid troubling new Windows adopters of this C++ runtime, it would be good to include this in the code!

(Adding this line does not break builds on Linux, and does not cause any warnings on Windows or Linux! - I tested it on both Windows and Linux)

On Linux, the build is successful because this library is usually included in the headers by default. But on Windows, when using Visual Studio (at least VS 2022 Community - the version I tested this on), the build fails because the "chrono" library is not included by default.

To avoid troubling new Windows adopters of this C++ runtime, it would be good to include this in the code!

(Adding this line does not break builds on Linux, and does not cause any warnings on Windows or Linux! - I test it this on both Windows and Linux)

Signed-off-by: 0xENDER <[email protected]>
@deanmsands3
Copy link

I was about to do this exact same PR. Thanks @0xENDER.

@Hammie
Copy link

Hammie commented Feb 24, 2025

Duplicate of #4738
Also ran into the same issue

@0xENDER
Copy link
Contributor Author

0xENDER commented Mar 2, 2025

This change has been made through a different pull request

@0xENDER 0xENDER closed this Mar 2, 2025
kaby76 added a commit to kaby76/Trash that referenced this pull request Mar 4, 2025
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.

3 participants