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:
@ -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
|
||||
|
Reference in New Issue
Block a user