Fixed compilation when building for Android.

This commit is contained in:
Martin Felis
2015-08-13 19:39:56 -03:00
parent f5778ed86e
commit 1ea54042e3
3 changed files with 16 additions and 1 deletions
+10
View File
@@ -26,6 +26,16 @@
// STD
#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 graphics