mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
By Bruce and Joerg suggestions and by looking into June version
of NetBSD simple #include <stdlib.h> into malloc.h Put #warning that this file is obsoleted ( by Joerg suggestion)
This commit is contained in:
parent
07b5b56eba
commit
4c268ef31a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4549
|
@ -1,16 +1,5 @@
|
|||
/* This file is SYSV-ism (for compatibility only) */
|
||||
/* this declarations must match stdlib.h ones */
|
||||
#if __GNUC__
|
||||
#warning "this file includes <malloc.h> which is obsoleted, use <stdlib.h> instead"
|
||||
#endif
|
||||
|
||||
#if !defined(_MALLOC_H_) && !defined(_STDLIB_H_)
|
||||
#define _MALLOC_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
void *calloc __P((size_t, size_t));
|
||||
void free __P((void *));
|
||||
void *malloc __P((size_t));
|
||||
void *realloc __P((void *, size_t));
|
||||
__END_DECLS
|
||||
|
||||
#endif /* _MALLOC_H_ */
|
||||
#include <stdlib.h>
|
||||
|
|
Loading…
Reference in a new issue