Skip to content

Commit

Permalink
Fixed compiler warning with mingw-w64
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 22, 2017
1 parent 9130ff5 commit 7416975
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions native_midi/native_midi_common.c
Expand Up @@ -28,10 +28,8 @@
#include <string.h>
#include <limits.h>


/* The maximum number of midi tracks that we can handle
#define MIDI_TRACKS 32 */

/* The constant 'MThd' */
#define MIDI_MAGIC 0x4d546864

/* A single midi track as read from the midi file */
typedef struct
Expand Down Expand Up @@ -295,7 +293,7 @@ static int ReadMIDIFile(MIDIFile *mididata, SDL_RWops *src)

/* Make sure this is really a MIDI file */
SDL_RWread(src, &ID, 1, 4);
if (BE_LONG(ID) != 'MThd')
if (BE_LONG(ID) != MIDI_MAGIC)
return 0;

/* Header size must be 6 */
Expand Down

0 comments on commit 7416975

Please sign in to comment.