[Commits] SDL: Fixed MinGW-w64 build

libsdl.org revision control commits-owner at libsdl.org
Sat Feb 24 08:23:06 PST 2018


details:   https://hg.libsdl.org/SDL/rev/cb9a637278ad
changeset: 11897:cb9a637278ad
user:      Sam Lantinga <slouken at libsdl.org>
date:      Sat Feb 24 08:23:44 2018 -0800
description:
Fixed MinGW-w64 build

diffstat:

 src/audio/wasapi/SDL_wasapi.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 5607348c333f -r cb9a637278ad src/audio/wasapi/SDL_wasapi.c
--- a/src/audio/wasapi/SDL_wasapi.c	Sat Feb 24 08:18:09 2018 -0800
+++ b/src/audio/wasapi/SDL_wasapi.c	Sat Feb 24 08:23:44 2018 -0800
@@ -37,6 +37,11 @@
 
 #include "SDL_wasapi.h"
 
+/* This constant isn't available on MinGW-w64 */
+#ifndef AUDCLNT_STREAMFLAGS_RATEADJUST
+#define AUDCLNT_STREAMFLAGS_RATEADJUST  0x00100000
+#endif
+
 /* these increment as default devices change. Opened default devices pick up changes in their threads. */
 SDL_atomic_t WASAPI_DefaultPlaybackGeneration;
 SDL_atomic_t WASAPI_DefaultCaptureGeneration;


More information about the commits mailing list