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
b990080a
Commit
b990080a
authored
Jun 24, 2021
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed fmt locale.h deprecation warning
parent
efbe3e4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
bench/async_bench.cpp
bench/async_bench.cpp
+6
-6
bench/bench.cpp
bench/bench.cpp
+2
-2
No files found.
bench/async_bench.cpp
View file @
b990080a
...
...
@@ -11,9 +11,9 @@
#include "spdlog/sinks/basic_file_sink.h"
#ifdef SPDLOG_FMT_EXTERNAL
#
include <fmt/locale
.h>
#
include <fmt/format
.h>
#else
#
include "spdlog/fmt/bundled/locale
.h"
#
include "spdlog/fmt/bundled/format
.h"
#endif
#include "utils.h"
...
...
@@ -32,9 +32,9 @@ using namespace utils;
void
bench_mt
(
int
howmany
,
std
::
shared_ptr
<
spdlog
::
logger
>
log
,
int
thread_count
);
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4996) // disable fopen warning under msvc
#endif // _MSC_VER
#
pragma warning(push)
#
pragma warning(disable : 4996) // disable fopen warning under msvc
#endif
// _MSC_VER
int
count_lines
(
const
char
*
filename
)
{
...
...
@@ -64,7 +64,7 @@ void verify_file(const char *filename, int expected_count)
}
#ifdef _MSC_VER
#pragma warning(pop)
#
pragma warning(pop)
#endif
int
main
(
int
argc
,
char
*
argv
[])
...
...
bench/bench.cpp
View file @
b990080a
...
...
@@ -13,9 +13,9 @@
#include "spdlog/sinks/rotating_file_sink.h"
#ifdef SPDLOG_FMT_EXTERNAL
#include <fmt/locale.h>
#
include <fmt/locale.h>
#else
#
include "spdlog/fmt/bundled/locale
.h"
#
include "spdlog/fmt/bundled/format
.h"
#endif
#include "utils.h"
...
...
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