[PATCH] libsndfile: use a macro instead of redefining the struct
authorMarcin Pączkowski <dyfeer@gmail.com>
Mon, 18 Apr 2022 20:51:53 +0000 (13:51 -0700)
committerBastian Germann <bage@debian.org>
Wed, 22 Jan 2025 20:37:43 +0000 (21:37 +0100)
Co-Authored-By: Christof Ressi <info@christofressi.com>
Gbp-Pq: Name use_macro_instead_of_redefining_struct.patch

server/scsynth/SC_HiddenWorld.h

index 57a26147eb3c89bbf251c36a96324093919ddab4..139cf0384345f8502a3e93c630ac205a95b0b2c3 100644 (file)
 #    include <SC_SndFileHelpers.hpp> // includes sndfile.h with appropriate configuration
 #endif
 
+#ifndef NO_LIBSNDFILE
+#    include <sndfile.h>
+#endif
+
 extern HashTable<struct UnitDef, Malloc>* gUnitDefLib;