mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
(Android) Removed declaration of log2 as it is available in newer NDK APIs
This commit is contained in:
@@ -27,15 +27,6 @@
|
||||
#include <cmath>
|
||||
#include <algorithm>
|
||||
|
||||
#ifdef LOVE_ANDROID
|
||||
// log2 is not declared in the math.h shipped with the Android NDK
|
||||
static inline double log2(double n)
|
||||
{
|
||||
// log(n)/log(2) is log2.
|
||||
return std::log(n) / std::log(2);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
namespace love
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user