mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-05 06:50:04 +00:00
Silence codecvt deprecation warning on VC++
This commit is contained in:
parent
32a37acd5a
commit
c66ac111ab
@ -5,14 +5,20 @@
|
|||||||
#ifndef _CNS_HPP
|
#ifndef _CNS_HPP
|
||||||
#define _CNS_HPP
|
#define _CNS_HPP
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
// codecvt_* is deprecated in C++17 and MSVC will throw an annoying warning because of that.
|
||||||
|
// Defining this before anything else to silence it.
|
||||||
|
#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
// Can't use this in MSVC.
|
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#else
|
#else
|
||||||
#include <time.h>
|
// Can't use this in MSVC.
|
||||||
|
#include <time.h>
|
||||||
#endif
|
#endif
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
Loading…
Reference in New Issue
Block a user