mesa: remove support for GL_APPLE_client_storage extension
[mesa.git] / src / glsl / ralloc.c
index 3ba5d86cd9c353fc70b7f19c8758bb9d7b9091e3..fb48a91c56472376088a43b4b036e4245fb2cf95 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__
@@ -403,6 +408,8 @@ printf_length(const char *fmt, va_list untouched_args)
 #endif
    assert(size >= 0);
 
+   va_end(args);
+
    return size;
 }