190d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber/* 21b362b15af34006e6a11974088a46d42b903418eJohann * Copyright (c) 2012 The WebM project authors. All Rights Reserved. 390d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber * 4f71323e297a928af368937089d3ed71239786f86Andreas Huber * Use of this source code is governed by a BSD-style license 5f71323e297a928af368937089d3ed71239786f86Andreas Huber * that can be found in the LICENSE file in the root of the source 6f71323e297a928af368937089d3ed71239786f86Andreas Huber * tree. An additional intellectual property rights grant can be found 7f71323e297a928af368937089d3ed71239786f86Andreas Huber * in the file PATENTS. All contributing project authors may 8f71323e297a928af368937089d3ed71239786f86Andreas Huber * be found in the AUTHORS file in the root of the source tree. 990d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber */ 1090d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber 111b362b15af34006e6a11974088a46d42b903418eJohann/* On Android NDK, rand is inlined function, but postproc needs rand symbol */ 121b362b15af34006e6a11974088a46d42b903418eJohann#if defined(__ANDROID__) 131b362b15af34006e6a11974088a46d42b903418eJohann#define rand __rand 141b362b15af34006e6a11974088a46d42b903418eJohann#include <stdlib.h> 151b362b15af34006e6a11974088a46d42b903418eJohann#undef rand 1690d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber 171b362b15af34006e6a11974088a46d42b903418eJohannextern int rand(void) 181b362b15af34006e6a11974088a46d42b903418eJohann{ 191b362b15af34006e6a11974088a46d42b903418eJohann return __rand(); 201b362b15af34006e6a11974088a46d42b903418eJohann} 2190d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber#else 221b362b15af34006e6a11974088a46d42b903418eJohann/* ISO C forbids an empty translation unit. */ 231b362b15af34006e6a11974088a46d42b903418eJohannint vp8_unused; 2490d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber#endif 25