mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 18:41:35 +08:00
Merge pull request #31 from rupertsteel/master
Fixed 2 macro redefinition warnings related to WIN32_LEAN_AND_MEAN.
This commit is contained in:
commit
c3f8200ad5
@ -39,7 +39,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
# ifndef WIN32_LEAN_AND_MEAN
|
||||||
# define WIN32_LEAN_AND_MEAN
|
# define WIN32_LEAN_AND_MEAN
|
||||||
|
# endif
|
||||||
# ifdef __MINGW32__
|
# ifdef __MINGW32__
|
||||||
# include <cstring>
|
# include <cstring>
|
||||||
# endif
|
# endif
|
||||||
|
@ -29,8 +29,10 @@
|
|||||||
#include<ctime>
|
#include<ctime>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define WIN32_LEAN_AND_MEAN
|
# ifndef WIN32_LEAN_AND_MEAN
|
||||||
#include <Windows.h>
|
# define WIN32_LEAN_AND_MEAN
|
||||||
|
# endif
|
||||||
|
# include <Windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace spdlog
|
namespace spdlog
|
||||||
|
Loading…
Reference in New Issue
Block a user