diff --git a/taglib/shn/shnfile.cpp b/taglib/shn/shnfile.cpp index 12f61ba0..a3229b4c 100644 --- a/taglib/shn/shnfile.cpp +++ b/taglib/shn/shnfile.cpp @@ -23,6 +23,7 @@ * http://www.mozilla.org/MPL/ * ***************************************************************************/ +#include #include #include "shnfile.h" @@ -378,7 +379,7 @@ void SHN::File::read(AudioProperties::ReadStyle propertiesStyle) // Read blocksize if version > 0 if(version > 0) { uint32_t blocksize = 0; - if(!input.uint_get(blocksize, version, static_cast(log2(DEFAULT_BLOCK_SIZE))) || blocksize == 0 || blocksize > MAX_BLOCKSIZE) { + if(!input.uint_get(blocksize, version, static_cast(std::log2(DEFAULT_BLOCK_SIZE))) || blocksize == 0 || blocksize > MAX_BLOCKSIZE) { debug("SHN::File::read() -- Invalid or unsupported block size."); setValid(false); return;