Commit 2f9e65b1 by Michael Meissner Committed by Michael Meissner

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

From-SVN: r29831
parent 139fa6f8
Tue Oct 5 15:37:04 1999 Michael Meissner <meissner@cygnus.com> Tue Oct 5 15:37:04 1999 Michael Meissner <meissner@cygnus.com>
* libgcc2.c (toplevel): If inhibit_libc is defined, declare * libgcc2.c (toplevel): If inhibit_libc is defined and not
malloc, free, and atexit. Don't include stddef.h twice. building the trampoline support, declare malloc, free, and
atexit.
(__clear_cache): Mark arguments as potentially unused. (__clear_cache): Mark arguments as potentially unused.
* frame.c (toplevel): If inhibit_libc is defined, declare * frame.c (toplevel): If inhibit_libc is defined, declare
......
...@@ -42,6 +42,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -42,6 +42,7 @@ Boston, MA 02111-1307, USA. */
#include <unistd.h> #include <unistd.h>
#else #else
#ifndef L_trampoline
#include <stddef.h> #include <stddef.h>
#ifndef malloc #ifndef malloc
extern void *malloc (size_t); extern void *malloc (size_t);
...@@ -53,10 +54,11 @@ extern void free (void *); ...@@ -53,10 +54,11 @@ extern void free (void *);
extern int atexit(void (*)(void)); extern int atexit(void (*)(void));
#endif #endif
#endif #endif
#endif
#include "machmode.h" #include "machmode.h"
#include "defaults.h" #include "defaults.h"
#if !defined(L_trampoline) && !defined(inhibit_libc) #ifndef L_trampoline
#include <stddef.h> #include <stddef.h>
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment