Skip to content

Commit 5bcd40a

Browse files
committed
updates to platform macro usage
1 parent 13efe3c commit 5bcd40a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/codecs/native_midi/native_midi_macosx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#include "SDL_config.h"
2323

24-
#if __MACOSX__
24+
#ifdef __MACOSX__
2525

2626
/* Mac OS X 10.6+, using Core MIDI. */
2727

src/codecs/native_midi/native_midi_win32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
/* everything below is currently one very big bad hack ;) Proff */
2424

25-
#if __WIN32__
25+
#ifdef __WIN32__
2626
#define WIN32_LEAN_AND_MEAN
2727

2828
#include <windows.h>

src/codecs/timidity/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "options.h"
1414
#include "common.h"
1515

16-
#if defined(__WIN32__) || defined(__OS2__)
16+
#if defined(_WIN32) || defined(__OS2__)
1717
#define CHAR_DIRSEP '\\'
1818
#define is_dirsep(c) ((c) == '/' || (c) == '\\')
1919
#define is_abspath(p) ((p)[0] == '/' || (p)[0] == '\\' || ((p)[0] && (p)[1] == ':'))

src/music.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const char *meta_tags_get(Mix_MusicMetaTags *tags, Mix_MusicMetaTag type)
142142
}
143143

144144
/* for music->filename */
145-
#if defined(__WIN32__)||defined(__OS2__)
145+
#if defined(_WIN32) || defined(__OS2__)
146146
static SDL_INLINE const char *get_last_dirsep (const char *p) {
147147
const char *p1 = SDL_strrchr(p, '/');
148148
const char *p2 = SDL_strrchr(p, '\\');

0 commit comments

Comments
 (0)