Fix platform detection for non-MSVC compilers.

This commit is contained in:
David Reid
2016-10-18 06:21:49 +10:00
parent f630a0153c
commit 183fdd0d16
+4 -1
View File
@@ -465,6 +465,7 @@ mal_uint32 mal_get_sample_size_in_bytes(mal_format format);
#include <assert.h> #include <assert.h>
#endif #endif
#if !defined(MAL_64BIT) && !defined(MAL_32BIT)
#ifdef _WIN32 #ifdef _WIN32
#ifdef _WIN64 #ifdef _WIN64
#define MAL_64BIT #define MAL_64BIT
@@ -472,7 +473,9 @@ mal_uint32 mal_get_sample_size_in_bytes(mal_format format);
#define MAL_32BIT #define MAL_32BIT
#endif #endif
#endif #endif
#endif
#if !defined(MAL_64BIT) && !defined(MAL_32BIT)
#ifdef __GNUC__ #ifdef __GNUC__
#ifdef __LP64__ #ifdef __LP64__
#define MAL_64BIT #define MAL_64BIT
@@ -480,6 +483,7 @@ mal_uint32 mal_get_sample_size_in_bytes(mal_format format);
#define MAL_32BIT #define MAL_32BIT
#endif #endif
#endif #endif
#endif
#if !defined(MAL_64BIT) && !defined(MAL_32BIT) #if !defined(MAL_64BIT) && !defined(MAL_32BIT)
#include <stdint.h> #include <stdint.h>
@@ -2519,7 +2523,6 @@ mal_uint32 mal_get_sample_size_in_bytes(mal_format format)
// without any fuss. // without any fuss.
// - Test s24 format on ALSA. Needs to be 32-bit aligned, but use only 24-bits. // - Test s24 format on ALSA. Needs to be 32-bit aligned, but use only 24-bits.
// - Fix C++ build. // - Fix C++ build.
// - Test MinGW and TDM-GCC
// //
// //
// ALSA // ALSA