mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-13 08:06:32 +01:00
Fix Windows build
This commit is contained in:
@@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user