diff options
author | David Robillard <d@drobilla.net> | 2023-09-10 15:06:42 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 248a874d7425749d29cf900a1c3783c624ea8d8c (patch) | |
tree | aed59f5a484a815cd254506866e98a947858904d /src/serd_config.h | |
parent | 0bd10132c6707353dba80bd89cf0102ee7ca4e34 (diff) | |
download | serd-248a874d7425749d29cf900a1c3783c624ea8d8c.tar.gz serd-248a874d7425749d29cf900a1c3783c624ea8d8c.tar.bz2 serd-248a874d7425749d29cf900a1c3783c624ea8d8c.zip |
Add support for custom allocators
This makes it explicit in the API where memory is allocated, and allows the
user to provide a custom allocator to avoid the use of the default system
allocator for whatever reason.
Diffstat (limited to 'src/serd_config.h')
-rw-r--r-- | src/serd_config.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/serd_config.h b/src/serd_config.h index 0bd9b5ac..0146c181 100644 --- a/src/serd_config.h +++ b/src/serd_config.h @@ -74,13 +74,6 @@ # endif # endif -// POSIX.1-2001: posix_memalign() -# ifndef HAVE_POSIX_MEMALIGN -# if SERD_POSIX_VERSION >= 200112L -# define HAVE_POSIX_MEMALIGN 1 -# endif -# endif - // POSIX.1-2001: strerror_r() # ifndef HAVE_STRERROR_R # if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L @@ -116,12 +109,6 @@ # define USE_POSIX_FADVISE 0 #endif -#if defined(HAVE_POSIX_MEMALIGN) && HAVE_POSIX_MEMALIGN -# define USE_POSIX_MEMALIGN 1 -#else -# define USE_POSIX_MEMALIGN 0 -#endif - #ifdef HAVE_STRERROR_R # define USE_STRERROR_R 1 #else |