Fixes to make Löve compile on Windows 10 UWP

This commit is contained in:
T-Bone
2016-04-07 22:56:03 +02:00
parent 03801e49d6
commit b2291fb62a
9 changed files with 49 additions and 17 deletions
@@ -24,6 +24,8 @@
#include <iostream>
#ifndef LOVE_NO_MPG123
namespace love
{
namespace sound
@@ -286,3 +288,5 @@ double Mpg123Decoder::getDuration()
} // lullaby
} // sound
} // love
#endif // LOVE_NO_MPG123
@@ -25,6 +25,8 @@
#include "common/Data.h"
#include "Decoder.h"
#ifndef LOVE_NO_MPG123
// libmpg123
#ifdef LOVE_APPLE_USE_FRAMEWORKS
#include <mpg123/mpg123.h>
@@ -88,4 +90,6 @@ private:
} // sound
} // love
#endif // LOVE_NO_MPG123
#endif // LOVE_SOUND_LULLABY_LIBMPG123_DECODER_H
+6 -6
View File
@@ -30,9 +30,9 @@
#include "WaveDecoder.h"
//#include "FLACDecoder.h"
#ifndef LOVE_NOMPG123
#ifndef LOVE_NO_MPG123
# include "Mpg123Decoder.h"
#endif // LOVE_NOMPG123
#endif // LOVE_NO_MPG123
#ifdef LOVE_SUPPORT_COREAUDIO
# include "CoreAudioDecoder.h"
@@ -51,9 +51,9 @@ Sound::Sound()
Sound::~Sound()
{
#ifndef LOVE_NOMPG123
#ifndef LOVE_NO_MPG123
Mpg123Decoder::quit();
#endif // LOVE_NOMPG123
#endif // LOVE_NO_MPG123
}
const char *Sound::getName() const
@@ -75,10 +75,10 @@ sound::Decoder *Sound::newDecoder(love::filesystem::FileData *data, int bufferSi
else if (ModPlugDecoder::accepts(ext))
decoder = new ModPlugDecoder(data, ext, bufferSize);
#endif // LOVE_NO_MODPLUG
#ifndef LOVE_NOMPG123
#ifndef LOVE_NO_MPG123
else if (Mpg123Decoder::accepts(ext))
decoder = new Mpg123Decoder(data, ext, bufferSize);
#endif // LOVE_NOMPG123
#endif // LOVE_NO_MPG123
else if (VorbisDecoder::accepts(ext))
decoder = new VorbisDecoder(data, ext, bufferSize);
#ifdef LOVE_SUPPORT_GME