Fix compilation with libc++

This commit is contained in:
Thomas Goyne 2012-12-28 09:24:51 -08:00
parent b0cbc049ec
commit 43d3fac178
2 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,7 @@
$(BoostPath);
%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4345</DisableSpecificWarnings>
</ClCompile>
<ResourceCompile>
<AdditionalIncludeDirectories>$(AegisubSourceBase)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>

View File

@ -34,6 +34,7 @@
#include "include/aegisub/audio_provider.h"
#include <array>
#include <boost/container/stable_vector.hpp>
namespace agi {
@ -42,7 +43,11 @@ namespace agi {
}
class RAMAudioProvider : public AudioProvider {
#ifdef _MSC_VER
boost::container::stable_vector<char[1 << 22]> blockcache;
#else
boost::container::stable_vector<std::array<char, 1 << 22>> blockcache;
#endif
bool samples_native_endian;
void FillCache(AudioProvider *source, agi::ProgressSink *ps);