1 /* 2 * SMAPI; Modified Squish MSGAPI 3 * 4 * Squish MSGAPI0 is copyright 1991 by Scott J. Dudley. All rights reserved. 5 * Modifications released to the public domain. 6 * 7 * Use of this file is subject to the restrictions contain in the Squish 8 * MSGAPI0 licence agreement. Please refer to licence.txt for complete 9 * details of the licencing restrictions. If you do not find the text 10 * of this agreement in licence.txt, or if you do not have this file, 11 * you should contact Scott Dudley at FidoNet node 1:249/106 or Internet 12 * e-mail Scott.Dudley@f106.n249.z1.fidonet.org. 13 * 14 * In no event should you proceed to use any of the source files in this 15 * archive without having accepted the terms of the MSGAPI0 licensing 16 * agreement, or such other agreement as you are able to reach with the 17 * author. 18 */ 19 20 #ifndef __ALC_H__ 21 #define __ALC_H__ 22 23 #include "compiler.h" 24 25 #if defined(_MSC_VER) || defined(__TURBOC__) || defined(__EMX__) || defined(__IBMC__) || defined(__WATCOMC__) || defined(__HIGHC__) || defined(__MINGW32__) 26 #include <malloc.h> 27 #elif defined(__UNIX__) || defined(SASC) || defined(__DJGPP__) 28 #else 29 #error alc.h: Unknown compiler! 30 #endif 31 32 #ifdef __TURBOC__ 33 #ifdef halloc 34 #undef halloc 35 #define halloc(x,y) ((char far *)farmalloc(x*y)) 36 #endif 37 #ifdef hfree 38 #undef hfree 39 #define hfree(p) farfree(p) 40 #endif 41 #endif 42 43 #endif 44