diff options
author | Chia-I Wu <[email protected]> | 2011-08-05 12:52:49 +0900 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2011-08-21 02:01:48 +0800 |
commit | b34770d83465f969eae57436d5aa9f4d31278c10 (patch) | |
tree | a39f5079e767e1f1e93abb87c076bb48374948a3 | |
parent | cd893ccba9b7e4bafbdbbb71f79d1b40bcef01a8 (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 <[email protected]>
-rw-r--r-- | 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 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__ |