home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_GEN / FACETV.ZIP / COMPILER.H < prev    next >
Text File  |  1993-12-09  |  2KB  |  69 lines

  1. /************************************************************************
  2. **
  3. ** @(#)compiler.h    07/12/92    Chris Ahlstrom
  4. **
  5. **    Since this isn't exclusive to MIDIEX, might as well put it
  6. ** in its own module.
  7. **
  8. *************************************************************************/
  9.  
  10.  
  11. #if !defined(COMPILER_h)                /* { COMPILER_h    */
  12. #define COMPILER_h
  13.  
  14. /************************************************************************
  15. ** Compiler-dependent definitions of
  16. **
  17. **    _Cdecl
  18. **    _Near
  19. **    NULL
  20. **
  21. *************************************************************************/
  22.  
  23. #if defined(__TURBOC__)                /* Turbo or Borland C++ */
  24.  
  25.     #define _Near
  26.     #if __STDC__
  27.         #define _Cdecl
  28.     #else
  29.         #define _Cdecl cdecl
  30.     #endif
  31.     #if !defined(NULL)
  32.     #if defined(__TINY__) || defined(__SMALL__) || defined(__MEDIUM__)
  33.         #define NULL    0
  34.     #else
  35.         #define NULL    0L
  36.     #endif
  37.     #endif
  38.     #define clrscr()    clrscr()
  39.  
  40. #elif defined(M_I86)                /* Microsoft or Quick C    */
  41.  
  42.     #if !defined(NO_EXT_KEYS)
  43.         #define _Near   near
  44.         #define _Cdecl  cdecl
  45.     #else
  46.         #define _Near
  47.         #define _Cdecl
  48.     #endif
  49.     #if !defined(NULL)
  50.         #if defined(M_I86SM) || defined(M_I86MM)
  51.             #define NULL    0
  52.         #else
  53.             #define NULL    0L
  54.         #endif
  55.     #endif
  56.     #define clrscr()        _clearscreen();
  57.     #define findfirst(a,b,c)    _dos_findfirst(a,c,b)
  58.     #define findnext(a)        _dos_findnext(a)
  59.     #define ffblk        find_t
  60.     #define ff_name        name
  61.     #define ff_attrib        attrib
  62.     #define FA_DIREC        _A_SUBDIR
  63.     static  int            tnumdrives;
  64.  
  65. #endif
  66.  
  67.  
  68. #endif                            /* } COMPILER_h    */
  69.