1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-18 09:00:52 +02:00

Fix Windows build

This commit is contained in:
Paul Licameli 2018-01-24 07:47:52 -05:00
parent 9c1b251313
commit 9e8d36adc2
2 changed files with 6 additions and 0 deletions

View File

@ -975,6 +975,9 @@ struct UFileHolder : public std::unique_ptr<
AVIOContext, AV_Deleter<AVIOContext, int, ufile_close> AVIOContext, AV_Deleter<AVIOContext, int, ufile_close>
> >
{ {
UFileHolder() = default;
UFileHolder( UFileHolder&& ) = default;
// Close explicitly, not ignoring return values. // Close explicitly, not ignoring return values.
int close() int close()
{ {

View File

@ -130,6 +130,9 @@ inline R SFCall(F fun, Args&&... args)
struct SFFileCloser { int operator () (SNDFILE*) const; }; struct SFFileCloser { int operator () (SNDFILE*) const; };
struct SFFile : public std::unique_ptr<SNDFILE, SFFileCloser> struct SFFile : public std::unique_ptr<SNDFILE, SFFileCloser>
{ {
SFFile() = default;
SFFile( SFFile&& ) = default;
// Close explicitly, not ignoring return values. // Close explicitly, not ignoring return values.
int close() int close()
{ {