egcs/gcc/cp/error.c and size_t

Philippe De Muyter phdm@macqel.be
Sun Feb 22 11:32:00 GMT 1998


Compiling egcs (1998-02-20 cvs checkout) on m68k-motorola-sysv elicits the
following messages :

/websrc/gnu/egcs/gcc/cp/error.c: In function `dump_expr':
/websrc/gnu/egcs/gcc/cp/error.c:1228: `size_t' undeclared (first use this
function)
/websrc/gnu/egcs/gcc/cp/error.c:1228: (Each undeclared identifier is reported
only once
/websrc/gnu/egcs/gcc/cp/error.c:1228: for each function it appears in.)
/websrc/gnu/egcs/gcc/cp/error.c:1228: parse error before `i'

Here is a patch :

Sun Feb 22 20:10:34 1998  Philippe De Muyter  <phdm@macqel.be>

	* cp/error.c (sys/types.h): File included.

--- ./gcc/cp/error.c	Sun Feb 22 20:20:11 1998
+++ ./gcc/cp/error.c	Sun Feb 22 19:08:54 1998
@@ -21,6 +21,7 @@
 
 #include "config.h"
 #include <stdio.h>
+#include <sys/types.h> /* For size_t, if not provided by stdlib.h */
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif



More information about the Gcc mailing list