Skip to content

Commit

Permalink
Fixes the system library Linux build
Browse files Browse the repository at this point in the history
Resolves: audacity#5877
  • Loading branch information
crsib committed Jan 24, 2024
1 parent 1581652 commit 6f68e2b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion libraries/lib-import-export/GetAcidizerTags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "GetAcidizerTags.h"
#include "AcidizerTags.h"

#include "sndfile.h"
#include <algorithm>
#include <array>
#include <cstring> // memset
Expand Down
4 changes: 3 additions & 1 deletion libraries/lib-import-export/GetAcidizerTags.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
#include <string>
#include <vector>

typedef struct SNDFILE_tag SNDFILE;
// SNDFILE is defined differently between libsndfile versions
// making forward declarations impossible.
#include <sndfile.h>

namespace LibFileFormats
{
Expand Down
1 change: 0 additions & 1 deletion libraries/lib-import-export/LibsndfileTagger.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "LibsndfileTagger.h"
#include "AcidizerTags.h"

#include "sndfile.h"
#include <array>
#include <cassert>
#include <cmath>
Expand Down
6 changes: 4 additions & 2 deletions libraries/lib-import-export/LibsndfileTagger.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@

#include "AcidizerTags.h"

// SNDFILE is defined differently between libsndfile versions
// making forward declarations impossible.
#include <sndfile.h>

#include <memory>
#include <string>

typedef struct SNDFILE_tag SNDFILE;

namespace LibImportExport
{
namespace Test
Expand Down

0 comments on commit 6f68e2b

Please sign in to comment.