From: Chia-I Wu Date: Fri, 5 Aug 2011 03:52:49 +0000 (+0900) Subject: ralloc: include limits.h for SIZE_MAX on Android X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b34770d83465f969eae57436d5aa9f4d31278c10;p=mesa.git 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 --- 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__