From b34770d83465f969eae57436d5aa9f4d31278c10 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 5 Aug 2011 12:52:49 +0900 Subject: [PATCH] ralloc: include limits.h for SIZE_MAX on Android Android does not define SIZE_MAX in stdint.h. We have to include limits.h for it. Reviewed-by: Chad Versace --- src/glsl/ralloc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/glsl/ralloc.c b/src/glsl/ralloc.c index 6a5eac6b9a3..fb48a91c564 100644 --- a/src/glsl/ralloc.c +++ b/src/glsl/ralloc.c @@ -28,6 +28,11 @@ #include #include +/* Android defines SIZE_MAX in limits.h, instead of the standard stdint.h */ +#ifdef ANDROID +#include +#endif + #include "ralloc.h" #ifdef __GNUC__ -- 2.30.2