1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libvpx/vp8/common/x86/postproc_x86.c Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +/* 1.5 + * Copyright (c) 2012 The WebM project authors. All Rights Reserved. 1.6 + * 1.7 + * Use of this source code is governed by a BSD-style license 1.8 + * that can be found in the LICENSE file in the root of the source 1.9 + * tree. An additional intellectual property rights grant can be found 1.10 + * in the file PATENTS. All contributing project authors may 1.11 + * be found in the AUTHORS file in the root of the source tree. 1.12 + */ 1.13 + 1.14 +/* On Android NDK, rand is inlined function, but postproc needs rand symbol */ 1.15 +#if defined(__ANDROID__) 1.16 +#define rand __rand 1.17 +#include <stdlib.h> 1.18 +#undef rand 1.19 + 1.20 +extern int rand(void) 1.21 +{ 1.22 + return __rand(); 1.23 +} 1.24 +#else 1.25 +/* ISO C forbids an empty translation unit. */ 1.26 +int vp8_unused; 1.27 +#endif