diff options
Diffstat (limited to 'libcxx/test/support/filesystem_include.hpp')
| -rw-r--r-- | libcxx/test/support/filesystem_include.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libcxx/test/support/filesystem_include.hpp b/libcxx/test/support/filesystem_include.hpp new file mode 100644 index 00000000000..228e710f3a1 --- /dev/null +++ b/libcxx/test/support/filesystem_include.hpp @@ -0,0 +1,18 @@ +#ifndef TEST_SUPPORT_FILESYSTEM_INCLUDE_HPP +#define TEST_SUPPORT_FILESYSTEM_INCLUDE_HPP + +#include <ciso646> +// Test against std::filesystem for STL's other than libc++ +#ifndef _LIBCPP_VERSION +#define TEST_INCLUDE_STD_FILESYSTEM +#endif + +#ifdef TEST_INCLUDE_STD_FILESYSTEM +#include <filesystem> +namespace fs = std::filesystem; +#else +#include <experimental/filesystem> +namespace fs = std::experimental::filesystem; +#endif + +#endif |

