These files all use malloc/free but never include it. It looks like
the NDK headers leak stdlib.h through something that was being
included, but the updated headers don't have that mess.
Test: mma
Change-Id: Ia34a2d74f382f88476708e31da819ea18ab0aa4f
* limitations under the License.
*/
-#include "filters.h"
#include <stdio.h>
+#include <stdlib.h>
+
+#include "filters.h"
static __inline__ void flipVertical(char * source, int srcWidth, int srcHeight, char * destination, int dstWidth, int dstHeight){
//Vertical
*/
#include <math.h>
+#include <stdlib.h>
+
#include "filters.h"
void JNIFUNCF(ImageFilterHighlights, nativeApplyFilter, jobject bitmap,
*/
#include <math.h>
+#include <stdlib.h>
+
#include "filters.h"
int value(int r, int g, int b) {
*/
#include <math.h>
+#include <stdlib.h>
+
#include "filters.h"
void JNIFUNCF(ImageFilterShadows, nativeApplyFilter, jobject bitmap, jint width, jint height, float scale){
* limitations under the License.
*/
+#include <stdlib.h>
+
#include "filters.h"
void estmateWhite(unsigned char *src, int len, int *wr, int *wb, int *wg){