[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)
committerGeorges Khaznadar <georgesk@debian.org>
Sat, 13 Apr 2024 16:43:46 +0000 (18:43 +0200)
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;