aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-06-21 23:05:11 -0700
committerChris Robinson <[email protected]>2017-06-21 23:05:11 -0700
commit552d3a85aff6290c5bc06e4093c7c7ebfd486456 (patch)
tree52f506266cde4271db7d472394902f062bf6a515
parent6fcbb7c73838ffd910df7dcdc85096937ee9e327 (diff)
Workaround log2f missing on Android
-rw-r--r--Alc/ALc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 1121b631..6d5454f5 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1214,6 +1214,8 @@ JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *jvm, void* UNUSED(reserved))
return JNI_VERSION_1_4;
}
+/* Android doesn't have log2f, really? */
+#define log2f(x) (logf(x) / logf(2.0f))
#endif