SDL_mixer: Fixed building with both MOD and Opus support

From 23793088111f5fcc9b5a2db621b49bcd7f9b40e1 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 14 Jan 2024 09:02:35 -0800
Subject: [PATCH] Fixed building with both MOD and Opus support

---
 Xcode/config.xcconfig | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/Xcode/config.xcconfig b/Xcode/config.xcconfig
index 2edf556c..afb7f838 100644
--- a/Xcode/config.xcconfig
+++ b/Xcode/config.xcconfig
@@ -1,6 +1,5 @@
 //
 //  config.xcconfig
-//  SDL_mixer
 //
 
 // Configuration settings file format documentation can be found at:
@@ -10,14 +9,17 @@
 #include? "build.xcconfig"
 
 // Uncomment these lines to enable native MIDI support on OSX
-//CONFIG_PREPROCESSOR_DEFINITIONS[sdk=mac*] = $(inherited) MUSIC_MID_NATIVE
+//MIDI_PREPROCESSOR_DEFINITIONS[sdk=macosx*] = MUSIC_MID_NATIVE
 
 // Uncomment these lines to enable MOD support
 // If you do this, you should run external/download.sh to download the decode libraries and add xmp.framework to your application bundle.
-//CONFIG_PREPROCESSOR_DEFINITIONS = $(inherited) MUSIC_MOD_XMP LIBXMP_HEADER=\"../external/libxmp/include/xmp.h\"
-//CONFIG_FRAMEWORK_LDFLAGS = $(inherited) -weak_framework xmp
+//MOD_PREPROCESSOR_DEFINITIONS = MUSIC_MOD_XMP LIBXMP_HEADER=\"../external/libxmp/include/xmp.h\"
+//MOD_FRAMEWORK_LDFLAGS = -weak_framework xmp
 
 // Uncomment these lines to enable Opus support
 // If you do this, you should run external/download.sh to download the decode libraries and add opus.framework to your application bundle.
-//CONFIG_PREPROCESSOR_DEFINITIONS = $(inherited) MUSIC_OPUS
-//CONFIG_FRAMEWORK_LDFLAGS = $(inherited) -weak_framework opus
+//OPUS_PREPROCESSOR_DEFINITIONS = MUSIC_OPUS
+//OPUS_FRAMEWORK_LDFLAGS = -weak_framework opus
+
+CONFIG_PREPROCESSOR_DEFINITIONS = $(inherited) $(MIDI_PREPROCESSOR_DEFINITIONS) $(MOD_PREPROCESSOR_DEFINITIONS) $(OPUS_PREPROCESSOR_DEFINITIONS)
+CONFIG_FRAMEWORK_LDFLAGS = $(inherited) $(MIDI_FRAMEWORK_LDFLAGS) $(MOD_FRAMEWORK_LDFLAGS) $(OPUS_FRAMEWORK_LDFLAGS)