aboutsummaryrefslogtreecommitdiffstats
path: root/src/serd_config.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-17 11:10:10 +0100
committerDavid Robillard <d@drobilla.net>2021-01-17 12:00:53 +0100
commitc4c4ec510dbeff61982e4aee7d1b379539319cd9 (patch)
tree942e531045244973fa62537489220789d4b1c105 /src/serd_config.h
parent989417824307f10ae75f8b9e0d6aa639a619faaf (diff)
downloadserd-c4c4ec510dbeff61982e4aee7d1b379539319cd9.tar.gz
serd-c4c4ec510dbeff61982e4aee7d1b379539319cd9.tar.bz2
serd-c4c4ec510dbeff61982e4aee7d1b379539319cd9.zip
Remove aligned_alloc support
This causes build issues when targeting older versions of MacOS. That could be fixed, but I don't have the ability to reproduce it at the moment, and it's a problem in the build system check code which is about to be entirely replaced anyway. Since, as far as I know, this does not actually add aligned allocation support to any real system (they all support one of the other methods), just remove it for now.
Diffstat (limited to 'src/serd_config.h')
-rw-r--r--src/serd_config.h17
1 files changed, 0 insertions, 17 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