diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-12-19 12:19:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-19 12:19:45 +0100 |
commit | 791c84bbbb76908aaa70f91276578766b2a630ac (patch) | |
tree | 51049920840a1dbdeb5bc7a3e98ba76c4e82df6f | |
parent | 8189f23e8c4b806c4e244d0fcce7cb06daa79318 (diff) | |
parent | 8674655a452d846c8bbb778f82c8daa1aa25db93 (diff) |
Merge pull request #34421 from Chaosus/fix_strcpy_warning
Fix build warning in ustring.cpp on Windows/MSVC platform
-rw-r--r-- | core/ustring.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index 345db0eb13..502e6a5a88 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" |