Kludge to allow compilation by non-ANSI compilers.
authorPer Bothner <per@bothner.com>
Fri, 20 Sep 1991 22:03:49 +0000 (22:03 +0000)
committerPer Bothner <per@bothner.com>
Fri, 20 Sep 1991 22:03:49 +0000 (22:03 +0000)
gdb/ChangeLog
gdb/mcheck.c

index 8bcb687..3895f11 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 20 15:00:57 1991  Per Bothner  (bothner at cygnus.com)
+
+       * mcheck.c: Add __ONEFILE kludge to allow compilation by non-ANSI
+       compilers (which may lack stddef.h).
+
 Fri Sep 20 13:29:42 1991  John Gilmore  (gnu at cygnus.com)
 
        * dbxread.c (read_dbx_symtab, process_one_symbol):  N_FN and
index 309fcfd..497bab2 100755 (executable)
@@ -20,6 +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"
+#define size_t unsigned int
+#define ptrdiff_t int
+#define NULL 0
+#define __ONEFILE
 #include "gmalloc.h"
 
 /* Old hook values.  */