From 5c8247f7307f1543127b7d12d5da122b85bc3d87 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Wed, 22 Dec 2010 22:01:11 +0100 Subject: 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 --- media/libstagefright/codecs/common/cmnMemory.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/media/libstagefright/codecs/common/cmnMemory.c b/media/libstagefright/codecs/common/cmnMemory.c index dd7c26d55a5a..aa52bd98f070 100644 --- a/media/libstagefright/codecs/common/cmnMemory.c +++ b/media/libstagefright/codecs/common/cmnMemory.c @@ -21,10 +21,8 @@ *******************************************************************************/ #include "cmnMemory.h" -#include -#if defined LINUX +#include #include -#endif //VO_MEM_OPERATOR g_memOP; -- cgit v1.2.3-59-g8ed1b