diff --git a/src/Audio/Audio.cpp b/src/Audio/Audio.cpp index 25c70e5e4..fa382b100 100644 --- a/src/Audio/Audio.cpp +++ b/src/Audio/Audio.cpp @@ -31,7 +31,12 @@ namespace Magnum { namespace Audio { /* Verify types */ static_assert(std::is_same::value, "ALubyte is not the same as UnsignedByte"); +/** @todo Why `ALbyte` is defined as `char` and not `signed char` on OSX? */ +#ifndef __APPLE__ static_assert(std::is_same::value, "ALbyte is not the same as Byte"); +#else +static_assert(std::is_signed::value && sizeof(ALbyte) == 1, "ALbyte does not have the same characteristics as Byte"); +#endif static_assert(std::is_same::value, "ALushort is not the same as UnsignedShort"); static_assert(std::is_same::value, "ALshort is not the same as Short"); static_assert(std::is_same::value, "ALuint is not the same as UnsignedInt");