SDL_mixer: updates to platform macro usage (b25e8)

From b25e80c271f426760eeeab9bfb12394045e1687a Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 24 Jan 2024 14:50:04 +0300
Subject: [PATCH] updates to platform macro usage

---
 src/codecs/native_midi/native_midi_macosx.c | 2 +-
 src/codecs/native_midi/native_midi_win32.c  | 2 +-
 src/codecs/timidity/common.c                | 2 +-
 src/music.c                                 | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/codecs/native_midi/native_midi_macosx.c b/src/codecs/native_midi/native_midi_macosx.c
index 5ef96ad0..916ea21d 100644
--- a/src/codecs/native_midi/native_midi_macosx.c
+++ b/src/codecs/native_midi/native_midi_macosx.c
@@ -21,7 +21,7 @@
 
 #include "SDL_config.h"
 
-#if __MACOSX__
+#ifdef __MACOSX__
 
 /* Mac OS X 10.6+, using Core MIDI. */
 
diff --git a/src/codecs/native_midi/native_midi_win32.c b/src/codecs/native_midi/native_midi_win32.c
index 1b0c2f78..522bd91e 100644
--- a/src/codecs/native_midi/native_midi_win32.c
+++ b/src/codecs/native_midi/native_midi_win32.c
@@ -22,7 +22,7 @@
 
 /* everything below is currently one very big bad hack ;) Proff */
 
-#if __WIN32__
+#ifdef __WIN32__
 #define WIN32_LEAN_AND_MEAN
 
 #include <windows.h>
diff --git a/src/codecs/timidity/common.c b/src/codecs/timidity/common.c
index 1096a38a..8786c19e 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(__WIN32__) || defined(__OS2__)
+#if defined(_WIN32) || defined(__OS2__)
 #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/music.c b/src/music.c
index 620c4e08..cbaafed6 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) || defined(__OS2__)
 static SDL_INLINE const char *get_last_dirsep (const char *p) {
     const char *p1 = SDL_strrchr(p, '/');
     const char *p2 = SDL_strrchr(p, '\\');