Fixed mingw64 32-bit build, which does have the correct structure definitions
authorSam Lantinga <slouken@libsdl.org>
Thu, 19 Jan 2017 20:19:37 -0800
changeset 1082227e26900cebc
parent 10821 b0b8395f5cf9
child 10823 77ef0962ea62
Fixed mingw64 32-bit build, which does have the correct structure definitions
src/audio/winmm/SDL_winmm.c
     1.1 --- a/src/audio/winmm/SDL_winmm.c	Wed Jan 18 12:19:57 2017 -0800
     1.2 +++ b/src/audio/winmm/SDL_winmm.c	Thu Jan 19 20:19:37 2017 -0800
     1.3 @@ -33,8 +33,8 @@
     1.4  #include "../SDL_audio_c.h"
     1.5  #include "SDL_winmm.h"
     1.6  
     1.7 -/*====== WORKAROUND for MinGW's WinAPI header where those structures are being missed ======*/
     1.8 -#if defined(__MINGW32__) && !defined(__MINGW64__)
     1.9 +/* MinGW32 mmsystem.h doesn't include these structures */
    1.10 +#if defined(__MINGW32__) && defined(_MMSYSTEM_H)
    1.11  
    1.12  typedef struct tagWAVEINCAPS2W 
    1.13  {
    1.14 @@ -65,8 +65,7 @@
    1.15      GUID NameGuid;
    1.16  } WAVEOUTCAPS2W,*PWAVEOUTCAPS2W,*NPWAVEOUTCAPS2W,*LPWAVEOUTCAPS2W;
    1.17  
    1.18 -#endif /* defined(__MINGW32__) && !defined(__MINGW64__) */
    1.19 -/*==========================================================================================*/
    1.20 +#endif /* defined(__MINGW32__) && defined(_MMSYSTEM_H) */
    1.21  
    1.22  #ifndef WAVE_FORMAT_IEEE_FLOAT
    1.23  #define WAVE_FORMAT_IEEE_FLOAT 0x0003