#ifndef BASE_SCOPED_CLEAR_LAST_ERROR_H_
#define BASE_SCOPED_CLEAR_LAST_ERROR_H_
#include <errno.h>
#include "base/base_export.h"
#include "build/build_config.h"
namespace base {
class BASE_EXPORT ScopedClearLastErrorBase { … };
#if BUILDFLAG(IS_WIN)
class BASE_EXPORT ScopedClearLastError : public ScopedClearLastErrorBase {
public:
ScopedClearLastError();
ScopedClearLastError(const ScopedClearLastError&) = delete;
ScopedClearLastError& operator=(const ScopedClearLastError&) = delete;
~ScopedClearLastError();
private:
const unsigned long last_system_error_;
};
#elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
ScopedClearLastError;
#endif
}
#endif