James Feist | f615040 | 2019-01-08 10:36:20 -0800 | [diff] [blame] | 1 | // this file splices filesystem in depending on the implementation |
| 2 | |
| 3 | #if __has_include(<filesystem>) |
James Feist | 673eda6 | 2019-01-10 08:53:18 -0800 | [diff] [blame] | 4 | #include <filesystem> |
James Feist | f615040 | 2019-01-08 10:36:20 -0800 | [diff] [blame] | 5 | #elif __has_include(<experimental/filesystem>) |
| 6 | #include <experimental/filesystem> |
| 7 | namespace std |
| 8 | { |
| 9 | // splice experimental::filesystem into std |
| 10 | namespace filesystem = std::experimental::filesystem; |
| 11 | } // namespace std |
| 12 | #else |
| 13 | #error filesystem not available |
James Feist | 673eda6 | 2019-01-10 08:53:18 -0800 | [diff] [blame] | 14 | #endif |