summaryrefslogtreecommitdiffstats
path: root/src/glsl/ralloc.c
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2011-08-05 12:52:49 +0900
committerChia-I Wu <olvaffe@gmail.com>2011-08-21 02:01:48 +0800
commitb34770d83465f969eae57436d5aa9f4d31278c10 (patch)
treea39f5079e767e1f1e93abb87c076bb48374948a3 /src/glsl/ralloc.c
parentcd893ccba9b7e4bafbdbbb71f79d1b40bcef01a8 (diff)
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 <chad@chad-versace.us>
Diffstat (limited to 'src/glsl/ralloc.c')
-rw-r--r--src/glsl/ralloc.c5
1 files changed, 5 insertions, 0 deletions
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 <string.h>
#include <stdint.h>
+/* Android defines SIZE_MAX in limits.h, instead of the standard stdint.h */
+#ifdef ANDROID
+#include <limits.h>
+#endif
+
#include "ralloc.h"
#ifdef __GNUC__