Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
6e763d27
Commit
6e763d27
authored
Feb 25, 2020
by
Dávid Bodor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only include windows.h when it's unavoidable
parent
64de8807
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
12 deletions
+28
-12
include/spdlog/common.h
include/spdlog/common.h
+0
-12
include/spdlog/sinks/msvc_sink.h
include/spdlog/sinks/msvc_sink.h
+9
-0
include/spdlog/sinks/win_eventlog_sink.h
include/spdlog/sinks/win_eventlog_sink.h
+9
-0
include/spdlog/sinks/wincolor_sink.h
include/spdlog/sinks/wincolor_sink.h
+10
-0
No files found.
include/spdlog/common.h
View file @
6e763d27
...
...
@@ -15,18 +15,6 @@
#include <type_traits>
#include <functional>
#ifdef _WIN32
#ifndef NOMINMAX
#define NOMINMAX // prevent windows redefining min/max
#endif
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#endif //_WIN32
#ifdef SPDLOG_COMPILED_LIB
#undef SPDLOG_HEADER_ONLY
#define SPDLOG_INLINE
...
...
include/spdlog/sinks/msvc_sink.h
View file @
6e763d27
...
...
@@ -8,6 +8,15 @@
#include <spdlog/details/null_mutex.h>
#include <spdlog/sinks/base_sink.h>
#ifndef NOMINMAX
#define NOMINMAX // prevent windows redefining min/max
#endif
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#include <winbase.h>
#include <mutex>
...
...
include/spdlog/sinks/win_eventlog_sink.h
View file @
6e763d27
...
...
@@ -30,6 +30,15 @@ Windows Registry Editor Version 5.00
#pragma once
#ifndef NOMINMAX
#define NOMINMAX // prevent windows redefining min/max
#endif
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#include <winbase.h>
#include <spdlog/details/null_mutex.h>
...
...
include/spdlog/sinks/wincolor_sink.h
View file @
6e763d27
...
...
@@ -12,6 +12,16 @@
#include <mutex>
#include <string>
#include <array>
#ifndef NOMINMAX
#define NOMINMAX // prevent windows redefining min/max
#endif
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#include <wincon.h>
namespace
spdlog
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment