summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qmalloc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/global/qmalloc.cpp')
-rw-r--r--src/corelib/global/qmalloc.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/corelib/global/qmalloc.cpp b/src/corelib/global/qmalloc.cpp
index e33f77c..3584c50 100644
--- a/src/corelib/global/qmalloc.cpp
+++ b/src/corelib/global/qmalloc.cpp
@@ -42,7 +42,10 @@
#include "qplatformdefs.h"
#include <stdlib.h>
-#include <malloc.h>
+
+#ifdef Q_OS_WIN
+# include <malloc.h>
+#endif
/*
Define the container allocation functions in a separate file, so that our
@@ -66,10 +69,6 @@ void *qRealloc(void *ptr, size_t size)
return ::realloc(ptr, size);
}
-#if ((defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 600))
-# define HAVE_POSIX_MEMALIGN
-#endif
-
void *qMallocAligned(size_t size, size_t alignment)
{
#if defined(Q_OS_WIN)