This reverts commit
061700c9f6f0f9f4219ddeb236d55764b42869b6.
This hack will be unnecessary, as I'm backporting the __unsupported()
utility from the later branches.
libstdc++-v3/ChangeLog:
* src/c++17/fs_ops.cc (not_supported):
* src/filesystem/ops-common.h (ENOTSUP):
#define _GLIBCXX_END_NAMESPACE_FILESYSTEM }
#include "../filesystem/ops-common.h"
-#ifdef __AVR__
-# define not_supported function_not_supported
-#endif
-
#pragma GCC diagnostic ignored "-Wunused-parameter"
namespace fs = std::filesystem;
# endif
using char_type = char;
#else // ! _GLIBCXX_FILESYSTEM_IS_WINDOWS && ! _GLIBCXX_HAVE_UNISTD_H
-#ifdef __AVR__
-# define ENOTSUP ENOSYS
-#endif
-
inline int open(const char*, int, ...) { errno = ENOTSUP; return -1; }
inline int close(int) { errno = ENOTSUP; return -1; }
using mode_t = int;