1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #9659 from miri64/pkg/fix/tlsf-llvm

tlsf: fix for llvm
This commit is contained in:
Martine Lenders 2018-08-01 09:20:09 +02:00 committed by GitHub
commit d6ec8e0122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,9 @@
static tlsf_t gheap = NULL;
/* TODO: Add defines for other compilers */
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__) /* Clang supports __GNUC__ but
* not the alloc_size()
* attribute */
#define ATTR_MALLOC __attribute__((malloc, alloc_size(1)))
#define ATTR_CALLOC __attribute__((malloc, alloc_size(1,2)))