From febc0828f271aa06681081217ee3ab2649dbf13a Mon Sep 17 00:00:00 2001 From: David Robillard <d@drobilla.net> Date: Thu, 12 Nov 2020 20:18:47 +0100 Subject: Use aligned allocation via C11 or Windows API where possible --- wscript | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index cca050b5..b9767563 100644 --- a/wscript +++ b/wscript @@ -120,6 +120,13 @@ def configure(conf): if Options.options.largefile: conf.env.append_unique('DEFINES', ['_FILE_OFFSET_BITS=64']) + conf.check_function('c', 'aligned_alloc', + header_name = 'stdlib.h', + return_type = 'void*', + arg_types = 'size_t,size_t', + define_name = 'HAVE_ALIGNED_ALLOC', + mandatory = False) + if not Options.options.no_posix: funcs = {'posix_memalign': ('stdlib.h', 'int', 'void**,size_t,size_t'), 'posix_fadvise': ('fcntl.h', 'int', 'int,off_t,off_t,int'), -- cgit v1.2.1