Skip to content

Commit

Permalink
remove unnecessary check for _WIN64 (#1302)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Sep 10, 2024
1 parent 252ed4a commit 9bd33c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libheif/box.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#define M_PI 3.14159265358979323846
#endif

#if !defined(_WIN32) && !defined(_WIN64)
#if !defined(_WIN32)
#include <unistd.h>
#else
#include <fcntl.h>
Expand Down Expand Up @@ -1909,7 +1909,7 @@ Error Box_iloc::write_mdat_after_iloc(StreamWriter& writer)

if (m_use_tmpfile) {
std::vector<uint8_t> data(extent.length);
#if !defined(_WIN32) && !defined(_WIN64)
#if !defined(_WIN32)
ssize_t cnt = ::read(m_tmpfile_fd, data.data(), extent.length);
#else
// TODO Currently unused code. Implement when needed.
Expand Down

0 comments on commit 9bd33c0

Please sign in to comment.