Fixed MinGW-w64 build
authorSam Lantinga <slouken@libsdl.org>
Sat, 24 Feb 2018 08:23:44 -0800
changeset 11897cb9a637278ad
parent 11896 5607348c333f
child 11898 1705ce3e25f2
Fixed MinGW-w64 build
src/audio/wasapi/SDL_wasapi.c
     1.1 --- a/src/audio/wasapi/SDL_wasapi.c	Sat Feb 24 08:18:09 2018 -0800
     1.2 +++ b/src/audio/wasapi/SDL_wasapi.c	Sat Feb 24 08:23:44 2018 -0800
     1.3 @@ -37,6 +37,11 @@
     1.4  
     1.5  #include "SDL_wasapi.h"
     1.6  
     1.7 +/* This constant isn't available on MinGW-w64 */
     1.8 +#ifndef AUDCLNT_STREAMFLAGS_RATEADJUST
     1.9 +#define AUDCLNT_STREAMFLAGS_RATEADJUST  0x00100000
    1.10 +#endif
    1.11 +
    1.12  /* these increment as default devices change. Opened default devices pick up changes in their threads. */
    1.13  SDL_atomic_t WASAPI_DefaultPlaybackGeneration;
    1.14  SDL_atomic_t WASAPI_DefaultCaptureGeneration;