diff options
Diffstat (limited to 'intern/guardedalloc')
-rw-r--r-- | intern/guardedalloc/MEM_guardedalloc.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/intern/guardedalloc/MEM_guardedalloc.h b/intern/guardedalloc/MEM_guardedalloc.h index d712a6ac2d9..2276c5ef0e6 100644 --- a/intern/guardedalloc/MEM_guardedalloc.h +++ b/intern/guardedalloc/MEM_guardedalloc.h @@ -59,13 +59,14 @@ #include "stdio.h" /* needed for FILE* */ #include "BLO_sys_types.h" /* needed for uintptr_t */ -#ifdef __GNUC__ -# define WARN_UNUSED __attribute__((warn_unused_result)) -#else -# define WARN_UNUSED +#ifndef WARN_UNUSED +# ifdef __GNUC__ +# define WARN_UNUSED __attribute__((warn_unused_result)) +# else +# define WARN_UNUSED +# endif #endif - #ifdef __cplusplus extern "C" { #endif |