Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
5381061d
Commit
5381061d
authored
Sep 30, 2019
by
Benjamin Sergeant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix windows compile error where std::max is overriden by a macro (#1251)
parent
274558c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pattern_formatter-inl.h
include/spdlog/details/pattern_formatter-inl.h
+1
-1
No files found.
include/spdlog/details/pattern_formatter-inl.h
View file @
5381061d
...
...
@@ -878,7 +878,7 @@ public:
void
format
(
const
details
::
log_msg
&
msg
,
const
std
::
tm
&
,
memory_buf_t
&
dest
)
override
{
auto
delta
=
std
::
max
(
msg
.
time
-
last_message_time_
,
log_clock
::
duration
::
zero
());
auto
delta
=
(
std
::
max
)
(
msg
.
time
-
last_message_time_
,
log_clock
::
duration
::
zero
());
auto
delta_units
=
std
::
chrono
::
duration_cast
<
DurationUnits
>
(
delta
);
last_message_time_
=
msg
.
time
;
ScopedPadder
p
(
6
,
padinfo_
,
dest
);
...
...
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