home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / msgapi38.zip / INCLUDE / ALC.H next >
C/C++ Source or Header  |  1994-12-31  |  3KB  |  66 lines

  1. /***************************************************************************
  2.  *                                                                         *
  3.  *  MSGAPI Source Code, Version 2.00                                       *
  4.  *  Copyright 1989-1991 by Scott J. Dudley.  All rights reserved.          *
  5.  *                                                                         *
  6.  *  Include file to pick between MALLOC.H and ALLOC.H                      *
  7.  *                                                                         *
  8.  *  For complete details of the licensing restrictions, please refer to    *
  9.  *  the licence agreement, which is published in its entirety in           *
  10.  *  README.1ST.                                                            *
  11.  *                                                                         *
  12.  *  USE OF THIS FILE IS SUBJECT TO THE RESTRICTIONS CONTAINED IN THE       *
  13.  *  MSGAPI LICENSING AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF THIS       *
  14.  *  AGREEMENT IN ANY OF THE AFOREMENTIONED FILES, OR IF YOU DO NOT HAVE    *
  15.  *  THESE FILES, YOU SHOULD IMMEDIATELY CONTACT THE AUTHOR AT ONE OF THE   *
  16.  *  ADDRESSES LISTED BELOW.  IN NO EVENT SHOULD YOU PROCEED TO USE THIS    *
  17.  *  FILE WITHOUT HAVING ACCEPTED THE TERMS OF THE MSGAPI LICENSING         *
  18.  *  AGREEMENT, OR SUCH OTHER AGREEMENT AS YOU ARE ABLE TO REACH WITH THE   *
  19.  *  AUTHOR.                                                                *
  20.  *                                                                         *
  21.  *  You can contact the author at one of the address listed below:         *
  22.  *                                                                         *
  23.  *  Scott Dudley           FidoNet  1:249/106                              *
  24.  *  777 Downing St.        Internet f106.n249.z1.fidonet.org               *
  25.  *  Kingston, Ont.         BBS      (613) 389-8315   HST/14.4k, 24hrs      *
  26.  *  Canada - K7M 5N3                                                       *
  27.  *                                                                         *
  28.  ***************************************************************************/
  29.  
  30. /* $Id: alc.h_v 1.0 1991/11/16 16:16:51 sjd Rel sjd $ */
  31.  
  32. #ifndef __ALC_H_DEFINED
  33. #define __ALC_H_DEFINED
  34.  
  35. #include "compiler.h"
  36.  
  37. #if defined(__MSC__)
  38.   #include <malloc.h>
  39.  
  40.   #ifdef __FARDATA__
  41.  
  42.   /* for some insane reason the turbo-c coreleft() function changes
  43.    * it's return value based on the memory model.
  44.    */
  45.  
  46.     unsigned long cdecl coreleft   (void);
  47.   #else
  48.     unsigned cdecl coreleft        (void);
  49.   #endif
  50.  
  51. #elif defined(__TURBOC__) || defined(__BCOS2__)
  52.   #include <alloc.h>
  53. #elif defined(__EMX__) || defined(__IBMC__) || defined(__WATCOMC__)
  54.   #include <malloc.h>
  55. #else
  56.   #error Which compiler are you using?
  57. #endif
  58.  
  59. #ifdef __TURBOC__
  60. #define halloc(x,y) ((char far *)farmalloc(x*y))
  61. #define hfree(p)    farfree(p)
  62. #endif
  63.  
  64. #endif /* __ALC_H_DEFINED */
  65.  
  66.