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

loguru.cpp: warning C4005: 'localtime_r': macro redefinition #240

Open
PekkaCoder opened this issue Jul 6, 2023 · 0 comments
Open

loguru.cpp: warning C4005: 'localtime_r': macro redefinition #240

PekkaCoder opened this issue Jul 6, 2023 · 0 comments

Comments

@PekkaCoder
Copy link

When I compile with my Visual Studio (latest version), C++14 compiler, I get this warning:

loguru.cpp(52,1): warning C4005: 'localtime_r': macro redefinition

I checked the old loguru version (like 4 years old), and it was defined in the same place as localtime_x.
So I changed it back to localtime_x (so that the meaning of using localtime stays the same) and the couple of places it uses it I use localtime_x instead of localtime_r, exactly like it was in the old loguru version.

I wonder why it was changed to localtime_r and why I get that warning?

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

No branches or pull requests

1 participant