-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use experimental::fs if fs is not supported (#640)
## Technical Description Use std::experimental::filesystem if std::filesystem is not supported, i.e. gcc < 8.
- Loading branch information
Showing
2 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//===--------------------------------------------------------------------------------*- C++ -*-===// | ||
// _ | ||
// | | | ||
// __| | __ ___ ___ ___ | ||
// / _` |/ _` \ \ /\ / / '_ | | ||
// | (_| | (_| |\ V V /| | | | | ||
// \__,_|\__,_| \_/\_/ |_| |_| - Compiler Toolchain | ||
// | ||
// | ||
// This file is distributed under the MIT License (MIT). | ||
// See LICENSE.txt for details. | ||
// | ||
//===------------------------------------------------------------------------------------------===// | ||
|
||
#ifndef DAWN_SUPPORT_FILESYSTEM_H | ||
#define DAWN_SUPPORT_FILESYSTEM_H | ||
|
||
#if __has_include(<filesystem>) | ||
#include <filesystem> | ||
namespace fs = std::filesystem; | ||
#elif __has_include(<experimental/filesystem>) | ||
#include <experimental/filesystem> | ||
namespace fs = std::experimental::filesystem; | ||
#endif | ||
|
||
#endif |