diff options
Diffstat (limited to 'src/vppinfra')
-rw-r--r-- | src/vppinfra/clib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vppinfra/clib.h b/src/vppinfra/clib.h index 50f04e18f84..1b6ab4157d7 100644 --- a/src/vppinfra/clib.h +++ b/src/vppinfra/clib.h @@ -100,7 +100,11 @@ #define __clib_packed __attribute__ ((packed)) #define __clib_constructor __attribute__ ((constructor)) #define __clib_noinline __attribute__ ((noinline)) +#ifdef __clang__ +#define __clib_noclone +#else #define __clib_noclone __attribute__ ((noclone)) +#endif #define __clib_aligned(x) __attribute__ ((aligned(x))) #define __clib_section(s) __attribute__ ((section(s))) #define __clib_warn_unused_result __attribute__ ((warn_unused_result)) |