fixes for compiling with SunPro

This commit is contained in:
Josh Coalson
2005-01-27 03:55:35 +00:00
parent 7446e18663
commit f4c1a8e8ef
7 changed files with 18 additions and 18 deletions

View File

@@ -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;