OSDN Git Service

u_math.h: don't define lrint family functions on Android
authorChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 21 Jan 2015 16:20:51 +0000 (00:20 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 16 Jul 2015 13:48:42 +0000 (21:48 +0800)
Android bionic has defined these functions.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
src/gallium/auxiliary/util/u_math.h

index 5db5b66..d03beca 100644 (file)
@@ -150,7 +150,7 @@ roundf(float x)
 #endif /* _MSC_VER */
 
 
-#if __STDC_VERSION__ < 199901L && (!defined(__cplusplus) || defined(_MSC_VER))
+#if __STDC_VERSION__ < 199901L && !defined(PIPE_OS_ANDROID) && (!defined(__cplusplus) || defined(_MSC_VER))
 static INLINE long int
 lrint(double d)
 {