1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Clean up __MALLOC_* macros.

This commit is contained in:
Joseph Myers
2013-01-07 15:00:47 +00:00
parent a9708fed77
commit 375607b9cc
3 changed files with 34 additions and 36 deletions

View File

@ -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