aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-11-25 02:33:20 -0800
committerChris Robinson <[email protected]>2012-11-25 02:33:20 -0800
commita0c39989f58f80f0ce4d97c4a2d62dffd1046d52 (patch)
tree2e1c413a6313885f6d5fe16d7e935e096cfa1e53 /Alc/helpers.c
parent209d09ae1347974142abb07d67efc80702e1e8b5 (diff)
malloc.h isn't standard, and is only needed for _aligned_malloc
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r--Alc/helpers.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index 44dc21a8..494439ba 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -20,11 +20,13 @@
#include "config.h"
-#include <malloc.h>
#include <stdlib.h>
#include <time.h>
#include <errno.h>
#include <stdarg.h>
+#ifdef HAVE__ALIGNED_MALLOC
+#include <malloc.h>
+#endif
#if defined(HAVE_GUIDDEF_H) || defined(HAVE_INITGUID_H)
#define INITGUID