diff --git a/mps/src/fmtdy.c b/mps/src/fmtdy.c index 6236cf1c7f3..e1dfbfe3ef4 100644 --- a/mps/src/fmtdy.c +++ b/mps/src/fmtdy.c @@ -1,6 +1,6 @@ /* impl.c.fmtdy: DYLAN OBJECT FORMAT IMPLEMENTATION * - * $HopeName: MMsrc!fmtdy.c(trunk.15) $ + * $HopeName: MMsrc!fmtdy.c(trunk.16) $ * Copyright (C) 1996,1997 Harlequin Group, all rights reserved. * * .readership: MPS developers, Dylan developers @@ -62,11 +62,6 @@ * fix it by supplying stderr. */ #include -/* .hack.malloc: builder.lc (LCC) uses Sun's header files. Sun's - * stdlib.h is broken, as it has an incorrect declaration of malloc. - * We fix that here in a very hacky way. - */ -#define malloc(x) (void *)malloc(x) #endif diff --git a/mps/src/fmtdytst.c b/mps/src/fmtdytst.c index f399bb6e66f..7547bec2529 100644 --- a/mps/src/fmtdytst.c +++ b/mps/src/fmtdytst.c @@ -1,6 +1,6 @@ /* impl.c.fmtdytst: DYLAN FORMAT TEST CODE * - * $HopeName$ + * $HopeName: MMsrc!fmtdytst.c(trunk.3) $ * Copyright (C) 1997 Harlequin Group, all rights reserved * * .readership: MPS developers, Dylan developers @@ -17,7 +17,15 @@ /* windows.h causes warnings about "unreferenced inline function */ /* has been removed". */ #pragma warning(disable: 4514) -#endif +#endif /* MPS_BUILD_MV */ + +#ifdef MPS_PF_SUS8LC +/* .hack.malloc: builder.lc (LCC) uses Sun's header files. Sun's + * stdlib.h is broken, as it has an incorrect declaration of malloc. + * We fix that here in a very hacky way. + */ +#define malloc(x) (void *)malloc(x) +#endif /* MPS_PF_SUS8LC */ static mps_word_t *ww = NULL;