ralloc: include limits.h for SIZE_MAX on Android
authorChia-I Wu <olvaffe@gmail.com>
Fri, 5 Aug 2011 03:52:49 +0000 (12:52 +0900)
committerChia-I Wu <olvaffe@gmail.com>
Sat, 20 Aug 2011 18:01:48 +0000 (02:01 +0800)
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>
src/glsl/ralloc.c

index 6a5eac6..fb48a91 100644 (file)
 #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__