1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-11 07:06:33 +01:00

Fix Windows build

This commit is contained in:
Paul Licameli
2018-01-24 11:43:45 -05:00
parent 9e8d36adc2
commit 2dbee940e0
2 changed files with 10 additions and 4 deletions

View File

@@ -128,10 +128,12 @@ inline R SFCall(F fun, Args&&... args)
//RAII for SNDFILE*
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;
SFFile( SFFile &&that )
: std::unique_ptr<SNDFILE, ::SFFileCloser>( std::move( that ) )
{}
// Close explicitly, not ignoring return values.
int close()