mirror of
https://github.com/love2d/love.git
synced 2026-08-20 12:40:20 +02:00
Fixed compilation when building for Android.
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
int32 b2BlockAllocator::s_blockSizes[b2_blockSizes] =
|
int32 b2BlockAllocator::s_blockSizes[b2_blockSizes] =
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -26,6 +26,16 @@
|
|||||||
// STD
|
// STD
|
||||||
#include <algorithm> // for min/max
|
#include <algorithm> // for min/max
|
||||||
|
|
||||||
|
#ifdef LOVE_ANDROID
|
||||||
|
// log2 is not declared in the math.h shipped with the Android NDK
|
||||||
|
#include <cmath>
|
||||||
|
inline double log2( double n )
|
||||||
|
{
|
||||||
|
// log(n)/log(2) is log2.
|
||||||
|
return std::log( n ) / std::log( 2 );
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace love
|
namespace love
|
||||||
{
|
{
|
||||||
namespace graphics
|
namespace graphics
|
||||||
|
|||||||
@@ -29,8 +29,12 @@
|
|||||||
#include "common/Data.h"
|
#include "common/Data.h"
|
||||||
#include "Decoder.h"
|
#include "Decoder.h"
|
||||||
|
|
||||||
// SDL_sound
|
// libmodplug
|
||||||
|
#ifdef LOVE_ANDROID
|
||||||
|
#include <modplug.h>
|
||||||
|
#else
|
||||||
#include <libmodplug/modplug.h>
|
#include <libmodplug/modplug.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace love
|
namespace love
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user