projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd893cc
)
ralloc: include limits.h for SIZE_MAX on Android
author
Chia-I Wu
<olvaffe@gmail.com>
Fri, 5 Aug 2011 03:52:49 +0000
(12:52 +0900)
committer
Chia-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
patch
|
blob
|
history
diff --git
a/src/glsl/ralloc.c
b/src/glsl/ralloc.c
index
6a5eac6
..
fb48a91
100644
(file)
--- 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__