From 183fdd0d1650dbbf4ce05a4965e0ad70513dba40 Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 18 Oct 2016 06:21:49 +1000 Subject: [PATCH] Fix platform detection for non-MSVC compilers. --- mini_al.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mini_al.h b/mini_al.h index 97fd26d6..720f01e3 100644 --- a/mini_al.h +++ b/mini_al.h @@ -465,6 +465,7 @@ mal_uint32 mal_get_sample_size_in_bytes(mal_format format); #include #endif +#if !defined(MAL_64BIT) && !defined(MAL_32BIT) #ifdef _WIN32 #ifdef _WIN64 #define MAL_64BIT @@ -472,7 +473,9 @@ mal_uint32 mal_get_sample_size_in_bytes(mal_format format); #define MAL_32BIT #endif #endif +#endif +#if !defined(MAL_64BIT) && !defined(MAL_32BIT) #ifdef __GNUC__ #ifdef __LP64__ #define MAL_64BIT @@ -480,6 +483,7 @@ mal_uint32 mal_get_sample_size_in_bytes(mal_format format); #define MAL_32BIT #endif #endif +#endif #if !defined(MAL_64BIT) && !defined(MAL_32BIT) #include @@ -2519,7 +2523,6 @@ mal_uint32 mal_get_sample_size_in_bytes(mal_format format) // without any fuss. // - Test s24 format on ALSA. Needs to be 32-bit aligned, but use only 24-bits. // - Fix C++ build. -// - Test MinGW and TDM-GCC // // // ALSA