[Mesa-dev] [PATCH 04/18] ralloc: SIZE_MAX is missing on Android

Chia-I Wu olvaffe at gmail.com
Tue Aug 16 23:28:07 PDT 2011


Define SIZE_MAX to UINT32_MAX for it.
---
 src/glsl/ralloc.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/glsl/ralloc.c b/src/glsl/ralloc.c
index 6a5eac6..757ab5c 100644
--- a/src/glsl/ralloc.c
+++ b/src/glsl/ralloc.c
@@ -46,6 +46,10 @@
 #endif
 #endif
 
+#ifdef ANDROID
+#define SIZE_MAX UINT32_MAX
+#endif
+
 #define CANARY 0x5A1106
 
 struct ralloc_header
-- 
1.7.5.4



More information about the mesa-dev mailing list