Silence MSVC codecvt deprecation warnings
This silences warnings about use of deprecated codecvt functionality after the switch to build with C++17.
This commit is contained in:
parent
853bb192c4
commit
a31e2859a8
7
third-party/benchmark/src/sysinfo.cc
vendored
7
third-party/benchmark/src/sysinfo.cc
vendored
@ -12,6 +12,13 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
// FIXME: This must be defined before any other includes to disable deprecation
|
||||||
|
// warnings for use of codecvt from C++17. We should remove our reliance on
|
||||||
|
// the deprecated functionality instead.
|
||||||
|
#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "internal_macros.h"
|
#include "internal_macros.h"
|
||||||
|
|
||||||
#ifdef BENCHMARK_OS_WINDOWS
|
#ifdef BENCHMARK_OS_WINDOWS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user