home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_10 / 8n10032a < prev    next >
Text File  |  1990-08-20  |  909b  |  53 lines

  1. Listing 1: environ.h
  2.  
  3. /*************************
  4. File:    ENVIRON.H
  5. Created
  6. By:        Russell Cook
  7. *************************/
  8.  
  9. #ifndef _ENVIRON_H_
  10. #define _ENVIRON_H_
  11.  
  12. #ifndef BOOL
  13. #    define BOOL    unsigned char
  14. #endif
  15.  
  16. #ifndef TRUE
  17. #    define FALSE    (BOOL)0
  18. #    define TRUE        (BOOL)~FALSE
  19. #endif
  20.  
  21. #ifndef VOID
  22. #    define VOID char
  23. #endif
  24.  
  25. #define MSC51_ENV
  26.    /* using Microsoft C 5.1
  27.       compiler */
  28. /*    #define TURBOC_ENV
  29.    /* using Borland Turbo C
  30.       version 2.0 */
  31. /*    #define SCOUNIX_ENV
  32.    /* using Santa Cruz Op's Unix */
  33.  
  34. /*    #define MIXED_MODEL
  35.    /* using both near
  36.       and far pointers */
  37.    /* NOTE: Shouldn't be used
  38.       w/LARGE model */
  39.  
  40. #ifdef MIXED_MODEL
  41. #    define FARFNCT    far pascal
  42. #    define NEARFNCT    near pascal
  43. #    define FAR        far
  44. #    define NEAR        near
  45. #else
  46. #    define FARFNCT
  47. #    define NEARFNCT
  48. #    define FAR
  49. #    define NEAR
  50. #endif
  51.  
  52. #endif    /* _ENVIRON_H_ */
  53.