Commit 183fdd0d authored by David Reid's avatar David Reid

Fix platform detection for non-MSVC compilers.

parent f630a015
......@@ -465,6 +465,7 @@ mal_uint32 mal_get_sample_size_in_bytes(mal_format format);
#include <assert.h>
#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 <stdint.h>
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment