mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-18 08:51:45 -08:00
Moving malloc hack from fmtdy to fmtdytst
Copied from Perforce Change: 19040 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
9c35570e5a
commit
a7ef55f2ad
2 changed files with 11 additions and 8 deletions
|
|
@ -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 <stdio.h>
|
||||
/* .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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue