Skip to content

Commit

Permalink
fix windows compilation, undefined 'cnt' (#1302)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Sep 10, 2024
1 parent 9bd33c0 commit 64c8cae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libheif/box.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,8 @@ Error Box_iloc::append_data(heif_item_id item_ID,
assert(false);
# if 0
int cnt = _write(m_tmpfile_fd, data.data(), data.size());
# else
int cnt = -1;
# endif
#endif
if (cnt < 0) {
Expand Down Expand Up @@ -1916,6 +1918,8 @@ Error Box_iloc::write_mdat_after_iloc(StreamWriter& writer)
assert(false);
# if 0
int cnt = _read(m_tmpfile_fd, data.data(), extent.length);
# else
int cnt = -1;
# endif
#endif
if (cnt<0) {
Expand Down

2 comments on commit 64c8cae

@gitoss
Copy link

@gitoss gitoss commented on 64c8cae Sep 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that fixes all msys2/clang64 compilation errors atm

@farindk
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the reports

Please sign in to comment.