Commit 568ca53b authored by Martin Marinov's avatar Martin Marinov

Silence std::experimental::filesystem deprecation warning in MSVC 2019

parent e7366fbb
// Copyright 2019 Autodesk, Inc. All rights reserved.
// Copyright 2020 Autodesk, Inc. All rights reserved.
//
// This computer source code and related instructions and comments are the
// unpublished confidential and proprietary information of Autodesk, Inc.
......@@ -19,8 +19,10 @@
#ifdef JOURNAL_USE_BOOST
#include <boost/filesystem.hpp>
#else // JOURNAL_USE_BOOST
// filesystem uses memcpy() in MSVC, suppress warnings
INSECURE_INCLUDE_SECTION_BEGIN
#include <filesystem> // filesystem uses memcpy() in MSVC, suppress warnings
#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING
#include <experimental/filesystem>
INSECURE_INCLUDE_SECTION_END
#endif // JOURNAL_USE_BOOST
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment