From 0ee4296dccf6b6ce3dd8cfd54e683ae6bd0d16ed Mon Sep 17 00:00:00 2001 From: David Reid Date: Mon, 13 Nov 2017 21:33:54 +1000 Subject: [PATCH] Fix build for some versions of MinGW. --- mini_al.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mini_al.h b/mini_al.h index d0d8528b..abb52295 100644 --- a/mini_al.h +++ b/mini_al.h @@ -2775,7 +2775,7 @@ static mal_result mal_device__main_loop__null(mal_device* pDevice) // The SDK that comes with old versions of MSVC (VC6, for example) does not appear to define WAVEFORMATEXTENSIBLE. We // define our own implementation in this case. -#ifndef _WAVEFORMATEXTENSIBLE_ +#if defined(_MSC_VER) && !defined(_WAVEFORMATEXTENSIBLE_) typedef struct { WAVEFORMATEX Format;