Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c8247f7 authored by Martin Storsjo's avatar Martin Storsjo
Browse files

stagefright: Include stdlib.h for malloc/free

According to ANSI C, malloc/free are provided by stdlib.h.

Also, string.h is always available according to ANSI C, and provides
the memset function, so there's no need to include it conditionally
for linux only.

This makes the code buildable on OS X, too.

Change-Id: Ie5d1da02158797e7e45dea257cbe3e4996dde4db
parent bf5adfa5
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -21,10 +21,8 @@
*******************************************************************************/
#include "cmnMemory.h"

#include <malloc.h>
#if defined LINUX
#include <stdlib.h>
#include <string.h>
#endif

//VO_MEM_OPERATOR		g_memOP;