You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my CMake project I'm including this library via a relative include directory. Even if I include the loguru.cpp file as the first line in main, I'm getting the following warnings:
C:\Cpp\MyProject\include\loguru.cpp(129): warning C4005: 'WIN32_LEAN_AND_MEAN': macro redefinition
C:\Cpp\MyProject\include\loguru.cpp(129): note: 'WIN32_LEAN_AND_MEAN' previously declared on the command line
C:\Cpp\MyProject\include\loguru.cpp(130): warning C4005: 'NOMINMAX': macro redefinition
C:\Cpp\MyProject\include\loguru.cpp(130): note: 'NOMINMAX' previously declared on the command line
These warnings can easily be solved by using the following conditional defines in loguru.cpp:
The text was updated successfully, but these errors were encountered:
BullyWiiPlaza
changed the title
WIN32_LEAN_AND_MEAN and NOMINMAX: macro redefinition
loguru.cpp: warning C4005: 'WIN32_LEAN_AND_MEAN' and 'NOMINMAX': macro redefinition
Aug 28, 2023
In my CMake project I'm including this library via a relative
include
directory. Even if I include theloguru.cpp
file as the first line in main, I'm getting the following warnings:These warnings can easily be solved by using the following conditional defines in
loguru.cpp
:Relevant code lines: https://github.com/emilk/loguru/blob/master/loguru.cpp#L129
The text was updated successfully, but these errors were encountered: