diff options
author | Chris Robinson <[email protected]> | 2017-06-21 23:05:11 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-06-21 23:05:11 -0700 |
commit | 552d3a85aff6290c5bc06e4093c7c7ebfd486456 (patch) | |
tree | 52f506266cde4271db7d472394902f062bf6a515 /Alc | |
parent | 6fcbb7c73838ffd910df7dcdc85096937ee9e327 (diff) |
Workaround log2f missing on Android
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |