aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/serd_config.h17
-rw-r--r--src/system.c2
2 files changed, 0 insertions, 19 deletions
diff --git a/src/serd_config.h b/src/serd_config.h
index 0cb83b2f..2566f4be 100644
--- a/src/serd_config.h
+++ b/src/serd_config.h
@@ -44,17 +44,6 @@
# endif
# endif
-// C99 and C++11: aligned_alloc()
-# ifndef HAVE_ALIGNED_ALLOC
-# if !defined(__APPLE__) && !defined(_WIN32)
-# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
-# define HAVE_ALIGNED_ALLOC
-# elif defined(__cplusplus) && __cplusplus >= 201103L
-# define HAVE_ALIGNED_ALLOC
-# endif
-# endif
-# endif
-
// POSIX.1-2001: fileno()
# ifndef HAVE_FILENO
# if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L
@@ -88,12 +77,6 @@
if the build system defines them all.
*/
-#ifdef HAVE_ALIGNED_ALLOC
-# define USE_ALIGNED_ALLOC 1
-#else
-# define USE_ALIGNED_ALLOC 0
-#endif
-
#ifdef HAVE_FILENO
# define USE_FILENO 1
#else
diff --git a/src/system.c b/src/system.c
index 12672d47..6bc93ca6 100644
--- a/src/system.c
+++ b/src/system.c
@@ -55,8 +55,6 @@ serd_malloc_aligned(const size_t alignment, const size_t size)
{
#if defined(_WIN32)
return _aligned_malloc(size, alignment);
-#elif USE_ALIGNED_ALLOC
- return aligned_alloc(alignment, size);
#elif USE_POSIX_MEMALIGN
void* ptr = NULL;
const int ret = posix_memalign(&ptr, alignment, size);