SDL_mixer: more updates to platform macro usage after latest SDL3,

From 0238375811c54f4ccebc6212bab66d89fa45f4d3 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 24 Jan 2024 14:40:40 +0300
Subject: [PATCH] more updates to platform macro usage after latest SDL3,

also removed os2 ifdefs because SDL3 doesn't support it.
---
 src/codecs/music_timidity.c    | 3 ---
 src/codecs/timidity/common.c   | 2 +-
 src/codecs/timidity/timidity.c | 2 +-
 src/music.c                    | 4 ++--
 4 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/codecs/music_timidity.c b/src/codecs/music_timidity.c
index 5bbb93ed..58880242 100644
--- a/src/codecs/music_timidity.c
+++ b/src/codecs/music_timidity.c
@@ -47,9 +47,6 @@ static void TIMIDITY_Delete(void *context);
  * of the config file to its search path, too. */
 #if defined(SDL_PLATFORM_WIN32)
 # define TIMIDITY_CFG           "C:\\TIMIDITY\\TIMIDITY.CFG"
-#elif defined(SDL_PLATFORM_OS2)
-# define TIMIDITY_CFG           "C:\\TIMIDITY\\TIMIDITY.CFG"
-# define TIMIDITY_CFG_ETC       "/@unixroot/etc/timidity/timidity.cfg"
 #else  /* unix: */
 # define TIMIDITY_CFG_ETC       "/etc/timidity.cfg"
 # define TIMIDITY_CFG_FREEPATS  "/etc/timidity/freepats.cfg"
diff --git a/src/codecs/timidity/common.c b/src/codecs/timidity/common.c
index e79e3179..9b2594c4 100644
--- a/src/codecs/timidity/common.c
+++ b/src/codecs/timidity/common.c
@@ -13,7 +13,7 @@
 #include "options.h"
 #include "common.h"
 
-#if defined(SDL_PLATFORM_WIN32) || defined(SDL_PLATFORM_OS2)
+#if defined(_WIN32)
 #define CHAR_DIRSEP '\\'
 #define is_dirsep(c) ((c) == '/' || (c) == '\\')
 #define is_abspath(p) ((p)[0] == '/' || (p)[0] == '\\' || ((p)[0] && (p)[1] == ':'))
diff --git a/src/codecs/timidity/timidity.c b/src/codecs/timidity/timidity.c
index 7ccd167d..e64867fa 100644
--- a/src/codecs/timidity/timidity.c
+++ b/src/codecs/timidity/timidity.c
@@ -433,7 +433,7 @@ static int read_config_file(const char *name, int rcf_count)
   return r;
 }
 
-#if defined(_WIN32)||defined(__CYGWIN__)||defined(__OS2__)
+#if defined(_WIN32) || defined(__CYGWIN__)
 /* FIXME: What about C:FOO ? */
 static SDL_INLINE char *get_last_dirsep (const char *p) {
   char *p1 = SDL_strrchr(p, '/');
diff --git a/src/music.c b/src/music.c
index fd0a2d37..c3c0951d 100644
--- a/src/music.c
+++ b/src/music.c
@@ -142,7 +142,7 @@ const char *meta_tags_get(Mix_MusicMetaTags *tags, Mix_MusicMetaTag type)
 }
 
 /* for music->filename */
-#if defined(__WIN32__)||defined(__OS2__)
+#if defined(_WIN32)
 static SDL_INLINE const char *get_last_dirsep (const char *p) {
     const char *p1 = SDL_strrchr(p, '/');
     const char *p2 = SDL_strrchr(p, '\\');
@@ -1561,7 +1561,7 @@ int Mix_EachSoundFont(int (SDLCALL *function)(const char*, void*), void *data)
         return 0;
     }
 
-#if defined(_WIN32) || defined(__OS2__)
+#if defined(_WIN32)
 #define PATHSEP ";"
 #else
 #define PATHSEP ":;"