]> Git Repo - binutils.git/blobdiff - gdb/mcheck.c
Remove coredep.o from XDEPFILES. The fetch_core_registers() function is
[binutils.git] / gdb / mcheck.c
index 611a378ee9689cfa318c87ea54ade8fa54b369e5..497bab2c01c22f4a3043d823f6d896af0579e70d 100755 (executable)
@@ -20,7 +20,10 @@ along with this program; if not, write to the Free Software
 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include "ansidecl.h"
-#include <stdlib.h>
+#define size_t unsigned int
+#define ptrdiff_t int
+#define NULL 0
+#define __ONEFILE
 #include "gmalloc.h"
 
 /* Old hook values.  */
@@ -28,14 +31,9 @@ static void EXFUN((*old_free_hook), (PTR ptr));
 static PTR EXFUN((*old_malloc_hook), (size_t size));
 static PTR EXFUN((*old_realloc_hook), (PTR ptr, size_t size));
 
-/* FIXME.  We cannot *declare* abort() as either being void or being
-   int, because if the system declares it as the other, we get a fatal
-   error.  It's senseless to configure the system for whether abort is
-   void or int.  So we simply fail to declare it, which works on all
-   systems, but might produce a warning on yours.  Please ignore the warning
-   and raise your middle finger in the general direction of the ANSI C
-   committee in tribute.  */
+
 /* Function to call when something awful happens. */
+extern void abort();
 static void EXFUN((*abortfunc), (void)) = (void (*)()) abort;
 
 /* Arbitrary magical numbers.  */
This page took 0.024059 seconds and 4 git commands to generate.