gcc-2.95.X assumes definitions of strlen(), memcpy() and some other
functions even in absence of prototypes. It's no more so with current
development version of gcc-3.0. Patch adds needed includes to avoid
some related warnings (I tried to build grx-2.3.4 for X11 under Linux
with gcc-3.0 20010301 (prerelease)).
Very limited testing done with this build.
Problems: gccbgi crashes when I have 32 bpp. It seems to work with
16 bpp. Perhaps I should recheck with gcc-2.95.2
Andris
--- grx-2.3.4/include/libbcc.h~1 Thu Jan 11 23:39:48 2001
+++ grx-2.3.4/include/libbcc.h Fri Mar 2 11:30:13 2001
@@ -31,6 +31,7 @@
#define __BCC2GRX__ 0x22b
#include <malloc.h>
+#include <string.h>
#ifdef __cplusplus
extern "C" {
--- grx-2.3.4/src/pnm/ctx2pnm.c~1 Thu Jan 25 00:04:46 2001
+++ grx-2.3.4/src/pnm/ctx2pnm.c Fri Mar 2 11:26:07 2001
@@ -18,6 +18,7 @@
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include "grx20.h"
/*
--- grx-2.3.4/src/bgi/fillpolb.c~1 Fri Jan 12 00:01:42 2001
+++ grx-2.3.4/src/bgi/fillpolb.c Fri Mar 2 11:29:12 2001
@@ -22,6 +22,7 @@
**
**/
+#include <stdlib.h>
#include "bccgrx00.h"
/*