diff options
Diffstat (limited to 'malloc/malloc.h')
-rw-r--r-- | malloc/malloc.h | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/malloc/malloc.h b/malloc/malloc.h index 7c8720b31f..9fe7ab26bc 100644 --- a/malloc/malloc.h +++ b/malloc/malloc.h @@ -28,29 +28,13 @@ #define __malloc_size_t size_t #define __malloc_ptrdiff_t ptrdiff_t -#ifdef __GNUC__ - -# define __MALLOC_P(args) args __THROW -/* This macro will be used for functions which might take C++ callback - functions. */ -# define __MALLOC_PMT(args) args - -# ifdef _LIBC -# define __MALLOC_HOOK_VOLATILE -# define __MALLOC_DEPRECATED -# else -# define __MALLOC_HOOK_VOLATILE volatile -# define __MALLOC_DEPRECATED __attribute_deprecated__ -# endif - -#else /* Not GCC. */ - -# define __MALLOC_P(args) args -# define __MALLOC_PMT(args) args +#ifdef _LIBC # define __MALLOC_HOOK_VOLATILE +# define __MALLOC_DEPRECATED +#else +# define __MALLOC_HOOK_VOLATILE volatile # define __MALLOC_DEPRECATED __attribute_deprecated__ - -#endif /* GCC. */ +#endif __BEGIN_DECLS |