fix build problem on SunOS 4.1.4
Mike Stump
mrs@windriver.com
Tue Nov 21 18:28:00 GMT 2000
I applied the following patch. The motivation was someone wanted
SunOS tested, and I was trying to do that, but got a build error. It
was simple enough, that I just fixed it.
2000-11-21 Mike Stump <mrs@wrs.com>
* fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Fix to allow
compilation with older compilers, such as /bin/cc on SunOS.
* fixinc/fixfixes.c (FIX_PROC_HEAD): Ditto.
Doing diffs in fixinc:
*** fixinc/fixtests.c.~1~ Thu Oct 19 17:51:04 2000
--- fixinc/fixtests.c Tue Nov 21 18:13:29 2000
*************** typedef struct {
*** 58,64 ****
_FT_( "machine_name", machine_name_test )
#define TEST_FOR_FIX_PROC_HEAD( test ) \
! t_test_proc test; /* avoid warning */ \
static apply_fix_p_t test ( fname, text ) \
tCC* fname; \
tCC* text;
--- 58,64 ----
_FT_( "machine_name", machine_name_test )
#define TEST_FOR_FIX_PROC_HEAD( test ) \
! apply_fix_p_t test PARAMS(( tCC* file, tCC* text )); /* avoid warning */ \
static apply_fix_p_t test ( fname, text ) \
tCC* fname; \
tCC* text;
*** fixinc/fixfixes.c.~1~ Thu Oct 19 17:51:00 2000
--- fixinc/fixfixes.c Tue Nov 21 18:19:38 2000
*************** typedef struct {
*** 82,88 ****
#define FIX_PROC_HEAD( fix ) \
! static t_fix_proc fix; /* avoid warning */ \
static void fix ( filname, text, p_fixd ) \
const char* filname; \
const char* text; \
--- 82,88 ----
#define FIX_PROC_HEAD( fix ) \
! static void fix PARAMS ((const char *, const char *, tFixDesc *)); /* avoid warning */ \
static void fix ( filname, text, p_fixd ) \
const char* filname; \
const char* text; \
--------------
More information about the Gcc-patches
mailing list