home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 February / PCWK0296.iso / sharewar / dos / program / gs300sr1 / gs300sr1.exe / MALLOC_.H < prev    next >
C/C++ Source or Header  |  1994-07-27  |  2KB  |  43 lines

  1. /* Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of Aladdin Ghostscript.
  4.   
  5.   Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  6.   or distributor accepts any responsibility for the consequences of using it,
  7.   or for whether it serves any particular purpose or works at all, unless he
  8.   or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  9.   License (the "License") for full details.
  10.   
  11.   Every copy of Aladdin Ghostscript must include a copy of the License,
  12.   normally in a plain ASCII text file named PUBLIC.  The License grants you
  13.   the right to copy, modify and redistribute Aladdin Ghostscript, but only
  14.   under certain conditions described in the License.  Among other things, the
  15.   License requires that the copyright notice and this notice be preserved on
  16.   all copies.
  17. */
  18.  
  19. /* malloc_.h */
  20. /* Generic substitute for Unix malloc.h */
  21.  
  22. /* We must include std.h before any file that includes sys/types.h. */
  23. #include "std.h"
  24.  
  25. #ifdef __TURBOC__
  26. #  include <alloc.h>
  27. #else
  28. #  ifdef VMS
  29.      extern char *malloc();
  30.      extern void free();
  31. #  else
  32. #    if defined(BSD4_2) || defined(apollo) || defined(vax) || defined(sequent) || defined(UTEK) || defined(_IBMR2)
  33.        extern char *malloc();
  34. #    else  /* should really be a POSIX define */
  35. #      if defined(_HPUX_SOURCE) || defined(__CONVEX__) || defined(__convex__) || defined(__OSF__) || defined(__386BSD__) || defined(__STDC__)
  36. #        include <stdlib.h>
  37. #      else
  38. #        include <malloc.h>
  39. #      endif                /* !_HPUX_SOURCE, ... */
  40. #    endif                /* !BSD4_2, ... */
  41. #  endif                /* !VMS */
  42. #endif                    /* !__TURBOC__ */
  43.