Skip to content

Commit

Permalink
updates to platform macro usage
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Jan 24, 2024
1 parent 13efe3c commit b25e80c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/codecs/native_midi/native_midi_macosx.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "SDL_config.h"

#if __MACOSX__
#ifdef __MACOSX__

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

Expand Down
2 changes: 1 addition & 1 deletion src/codecs/native_midi/native_midi_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/codecs/timidity/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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] == ':'))
Expand Down
2 changes: 1 addition & 1 deletion src/music.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, '\\');
Expand Down

0 comments on commit b25e80c

Please sign in to comment.