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:
commit
d6ec8e0122
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user