(portability) use stdlib.h not malloc.h

This commit is contained in:
Mike Tedesco 2012-10-04 18:10:33 -07:00 committed by Kamal Mostafa
parent d8f7601b4f
commit 577b84d7f2
7 changed files with 6 additions and 7 deletions

View File

@ -18,7 +18,7 @@
*/
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include <math.h> // fabs, hypotf
#include <float.h> // FLT_EPSILON

View File

@ -20,7 +20,7 @@
#include <math.h>
#include <strings.h>
#include <malloc.h>
#include <stdlib.h>
#include <assert.h>
#include "simpleaudio.h"

View File

@ -24,7 +24,7 @@
#if USE_ALSA
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include <assert.h>
#include <alsa/asoundlib.h>

View File

@ -24,7 +24,7 @@
#if USE_BENCHMARKS
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

View File

@ -24,7 +24,7 @@
#if USE_PULSEAUDIO
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include <assert.h>
#include <pulse/simple.h>

View File

@ -25,7 +25,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#include <assert.h>

View File

@ -20,7 +20,7 @@
#include "simpleaudio.h"
#include "simpleaudio_internal.h"
#include <malloc.h>
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>