From 121d3fb3d9835ec78a1de7f268e79bf79cbf5865 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Mon, 15 May 2023 17:58:46 +0200 Subject: Remove ATL header usage (#306) ATL has been used here and there as a convenience. Given that this is a legacy component and not always something which gets installed along with the compiler we hereby remove the dependency altogether in favour of our own simple wrappers --- src/zencore/iobuffer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/zencore/iobuffer.cpp') diff --git a/src/zencore/iobuffer.cpp b/src/zencore/iobuffer.cpp index 96653c670..3aca0cfa7 100644 --- a/src/zencore/iobuffer.cpp +++ b/src/zencore/iobuffer.cpp @@ -21,7 +21,7 @@ ZEN_THIRD_PARTY_INCLUDES_END #endif #if ZEN_PLATFORM_WINDOWS -# include +# include #else # include # include @@ -555,7 +555,7 @@ IoBufferBuilder::MakeFromFile(const std::filesystem::path& FileName, uint64_t Of uint64_t FileSize; #if ZEN_PLATFORM_WINDOWS - CAtlFile DataFile; + windows::FileHandle DataFile; DWORD ShareOptions = FILE_SHARE_DELETE | FILE_SHARE_WRITE | FILE_SHARE_DELETE | FILE_SHARE_READ; HRESULT hRes = DataFile.Create(FileName.c_str(), GENERIC_READ, ShareOptions, OPEN_EXISTING); @@ -620,7 +620,7 @@ IoBufferBuilder::MakeFromTemporaryFile(const std::filesystem::path& FileName) void* Handle; #if ZEN_PLATFORM_WINDOWS - CAtlFile DataFile; + windows::FileHandle DataFile; // We need to open with DELETE since this is used for the case // when a file has been written to a staging directory, and is going -- cgit v1.2.3