#ifndef BASE_FILES_PLATFORM_FILE_H_
#define BASE_FILES_PLATFORM_FILE_H_
#include "base/files/scoped_file.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_WIN)
#include "base/win/scoped_handle.h"
#include "base/win/windows_types.h"
#endif
namespace base {
#if BUILDFLAG(IS_WIN)
using PlatformFile = HANDLE;
using ScopedPlatformFile = ::base::win::ScopedHandle;
const PlatformFile kInvalidPlatformFile = INVALID_HANDLE_VALUE;
#elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
using PlatformFile = int;
using ScopedPlatformFile = ::base::ScopedFD;
constexpr PlatformFile kInvalidPlatformFile = -1;
#endif
}
#endif