Do not include stddef.h if building trampoline support and inhibit_libc is defined

From-SVN: r29831
This commit is contained in:
Michael Meissner 1999-10-05 19:59:03 +00:00 committed by Michael Meissner
parent 139fa6f87b
commit 2f9e65b1f1
2 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,8 @@
Tue Oct 5 15:37:04 1999 Michael Meissner <meissner@cygnus.com>
* libgcc2.c (toplevel): If inhibit_libc is defined, declare
malloc, free, and atexit. Don't include stddef.h twice.
* libgcc2.c (toplevel): If inhibit_libc is defined and not
building the trampoline support, declare malloc, free, and
atexit.
(__clear_cache): Mark arguments as potentially unused.
* frame.c (toplevel): If inhibit_libc is defined, declare

View File

@ -42,6 +42,7 @@ Boston, MA 02111-1307, USA. */
#include <unistd.h>
#else
#ifndef L_trampoline
#include <stddef.h>
#ifndef malloc
extern void *malloc (size_t);
@ -53,10 +54,11 @@ extern void free (void *);
extern int atexit(void (*)(void));
#endif
#endif
#endif
#include "machmode.h"
#include "defaults.h"
#if !defined(L_trampoline) && !defined(inhibit_libc)
#ifndef L_trampoline
#include <stddef.h>
#endif