Fixed compiler warning with mingw-w64
authorSam Lantinga <slouken@libsdl.org>
Sun, 22 Oct 2017 13:28:53 -0700
changeset 832177a6b4480ab
parent 831 d87b8620f8ed
child 833 0308dd4ea697
Fixed compiler warning with mingw-w64
native_midi/native_midi_common.c
     1.1 --- a/native_midi/native_midi_common.c	Sun Oct 22 12:09:28 2017 -0700
     1.2 +++ b/native_midi/native_midi_common.c	Sun Oct 22 13:28:53 2017 -0700
     1.3 @@ -28,10 +28,8 @@
     1.4  #include <string.h>
     1.5  #include <limits.h>
     1.6  
     1.7 -
     1.8 -/* The maximum number of midi tracks that we can handle
     1.9 -#define MIDI_TRACKS 32 */
    1.10 -
    1.11 +/* The constant 'MThd' */
    1.12 +#define MIDI_MAGIC	0x4d546864
    1.13  
    1.14  /* A single midi track as read from the midi file */
    1.15  typedef struct
    1.16 @@ -295,7 +293,7 @@
    1.17  
    1.18      /* Make sure this is really a MIDI file */
    1.19      SDL_RWread(src, &ID, 1, 4);
    1.20 -    if (BE_LONG(ID) != 'MThd')
    1.21 +    if (BE_LONG(ID) != MIDI_MAGIC)
    1.22          return 0;
    1.23  
    1.24      /* Header size must be 6 */