Commit f920c847 authored by Ghislain MARY's avatar Ghislain MARY

Fix build for Android arm64.

parent 532968c2
......@@ -875,6 +875,10 @@ process_common_toolchain() {
ANDROID_TOOLCHAIN_PREFIX=arm-linux-androideabi
ANDROID_TOOLCHAIN_ARCH=arm
;;
arm64)
ANDROID_TOOLCHAIN_PREFIX=aarch64-linux-android
ANDROID_TOOLCHAIN_ARCH=arm64
;;
x86)
ANDROID_TOOLCHAIN_PREFIX=x86-linux-android
ANDROID_TOOLCHAIN_ALT_PREFIX=x86_64-linux-android
......
......@@ -17,6 +17,10 @@
#include "vpx/vpx_integer.h"
#include "vpx_ports/mem.h"
#ifdef __ANDROID__
#define rand() lrand48()
#endif
void vpx_plane_add_noise_c(uint8_t *start, const int8_t *noise, int blackclamp,
int whiteclamp, int width, int height, int pitch) {
int i, j;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment