Skip to content

Commit

Permalink
Define ENABLE_SNDFILE_WINDOWS_PROTOTYPES for older libsndfile where s…
Browse files Browse the repository at this point in the history
…f_wchar_open isn't always defined
  • Loading branch information
sakertooth committed Feb 13, 2025
1 parent 1f42995 commit a226a1d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/SampleFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@

#include <QString>
#include <algorithm>

#ifdef _WIN32
#include <windows.h>
#define ENABLE_SNDFILE_WINDOWS_PROTOTYPES 1
#endif

#include <sndfile.h>

#include "AudioEngine.h"
Expand Down

0 comments on commit a226a1d

Please sign in to comment.