Skip to content

Commit

Permalink
Fixed mingw64 32-bit build, which does have the correct structure def…
Browse files Browse the repository at this point in the history
…initions
  • Loading branch information
slouken committed Jan 20, 2017
1 parent f354024 commit 9b99265
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/audio/winmm/SDL_winmm.c
Expand Up @@ -33,8 +33,8 @@
#include "../SDL_audio_c.h"
#include "SDL_winmm.h"

/*====== WORKAROUND for MinGW's WinAPI header where those structures are being missed ======*/
#if defined(__MINGW32__) && !defined(__MINGW64__)
/* MinGW32 mmsystem.h doesn't include these structures */
#if defined(__MINGW32__) && defined(_MMSYSTEM_H)

typedef struct tagWAVEINCAPS2W
{
Expand Down Expand Up @@ -65,8 +65,7 @@ typedef struct tagWAVEOUTCAPS2W
GUID NameGuid;
} WAVEOUTCAPS2W,*PWAVEOUTCAPS2W,*NPWAVEOUTCAPS2W,*LPWAVEOUTCAPS2W;

#endif /* defined(__MINGW32__) && !defined(__MINGW64__) */
/*==========================================================================================*/
#endif /* defined(__MINGW32__) && defined(_MMSYSTEM_H) */

#ifndef WAVE_FORMAT_IEEE_FLOAT
#define WAVE_FORMAT_IEEE_FLOAT 0x0003
Expand Down

0 comments on commit 9b99265

Please sign in to comment.