From 8674655a452d846c8bbb778f82c8daa1aa25db93 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Wed, 18 Dec 2019 11:35:17 +0300 Subject: [PATCH] Fix build warning in ustring.cpp on Windows/MSVC platform --- core/ustring.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/ustring.cpp b/core/ustring.cpp index 345db0eb132..502e6a5a887 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -28,6 +28,10 @@ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ +#ifdef _MSC_VER +#define _CRT_SECURE_NO_WARNINGS // to disable build-time warning which suggested to use strcpy_s instead strcpy +#endif + #include "ustring.h" #include "core/color.h"