[Mesa-dev] [PATCHv2 04/21] ralloc: include limits.h for SIZE_MAX on Android

Chia-I Wu olvaffe at gmail.com
Thu Aug 18 19:37:30 PDT 2011


Android does not define SIZE_MAX in stdint.h.  We have to include
limits.h for it.

Reviewed-by: Chad Versace <chad at chad-versace.us>
---
 src/glsl/ralloc.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/glsl/ralloc.c b/src/glsl/ralloc.c
index 6a5eac6..fb48a91 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__
-- 
1.7.5.4



More information about the mesa-dev mailing list