From 9a2e5db0ca5cc0e4d48b19955a548d9f7e7b6f32 Mon Sep 17 00:00:00 2001 From: Dominick Schroer Date: Sun, 6 Mar 2022 11:55:35 -0500 Subject: [PATCH] Remove define guards for WASM platform --- src/operations.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/operations.cpp b/src/operations.cpp index 8d2f0adf9..adcd0aef4 100644 --- a/src/operations.cpp +++ b/src/operations.cpp @@ -2760,7 +2760,7 @@ void create_symlink(path const& to, path const& from, error_code* ec) BOOST_FILESYSTEM_DECL path current_path(error_code* ec) { -#if defined(UNDER_CE) || defined(__wasm) +#if defined(UNDER_CE) // Windows CE has no current directory, so everything's relative to the root of the directory tree. // WASI also does not support current path. emit_error(BOOST_ERROR_NOT_SUPPORTED, ec, "boost::filesystem::current_path"); @@ -2830,7 +2830,7 @@ path current_path(error_code* ec) BOOST_FILESYSTEM_DECL void current_path(path const& p, system::error_code* ec) { -#if defined(UNDER_CE) || defined(__wasm) +#if defined(UNDER_CE) emit_error(BOOST_ERROR_NOT_SUPPORTED, p, ec, "boost::filesystem::current_path"); #else error(!BOOST_SET_CURRENT_DIRECTORY(p.c_str()) ? BOOST_ERRNO : 0, p, ec, "boost::filesystem::current_path");