mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
fixes for compiling with SunPro
This commit is contained in:
@@ -169,7 +169,7 @@ namespace FLAC {
|
||||
bool Stream::set_metadata(FLAC::Metadata::Prototype **metadata, unsigned num_blocks)
|
||||
{
|
||||
FLAC__ASSERT(is_valid());
|
||||
#ifdef _MSC_VER
|
||||
#if (defined _MSC_VER) || (defined __SUNPRO_CC)
|
||||
// MSVC++ can't handle:
|
||||
// ::FLAC__StreamMetadata *m[num_blocks];
|
||||
// so we do this ugly workaround
|
||||
@@ -181,7 +181,7 @@ namespace FLAC {
|
||||
// we can get away with this since we know the encoder will only correct the is_last flags
|
||||
m[i] = const_cast< ::FLAC__StreamMetadata*>((::FLAC__StreamMetadata*)metadata[i]);
|
||||
}
|
||||
#ifdef _MSC_VER
|
||||
#if (defined _MSC_VER) || (defined __SUNPRO_CC)
|
||||
// complete the hack
|
||||
const bool ok = (bool)::FLAC__stream_encoder_set_metadata(encoder_, m, num_blocks);
|
||||
delete [] m;
|
||||
|
||||
Reference in New Issue
Block a user