From b40f93afba3aeeb9b4feb738de78f3b6baf2f427 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Sat, 31 Oct 2020 16:12:02 +0100 Subject: [PATCH] Skip building audiofile libs if using sndfile --- external/st_audiofile/src/st_audiofile_libs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/external/st_audiofile/src/st_audiofile_libs.c b/external/st_audiofile/src/st_audiofile_libs.c index 0bbcccca..635c19d4 100644 --- a/external/st_audiofile/src/st_audiofile_libs.c +++ b/external/st_audiofile/src/st_audiofile_libs.c @@ -4,6 +4,7 @@ // license. You should have receive a LICENSE.md file along with the code. // If not, contact the sfizz maintainers at https://github.com/sfztools/sfizz +#if !defined(ST_AUDIO_FILE_USE_SNDFILE) #define DR_WAV_IMPLEMENTATION #define DR_FLAC_IMPLEMENTATION #define DR_MP3_IMPLEMENTATION @@ -27,3 +28,5 @@ stb_vorbis* stb_vorbis_open_filename_w(const wchar_t* filename, int* error, cons return NULL; } #endif + +#endif // !defined(ST_AUDIO_FILE_USE_SNDFILE)