home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_11 / 8n11107c < prev    next >
Text File  |  1990-08-09  |  973b  |  41 lines

  1.  
  2. ***************************
  3. Listing 5
  4.  
  5. /* This macro could be moved into your personal header file */
  6.  
  7. #define  MH_CONCATTOKEN( name1, name2)  name 1 ## name2
  8.  
  9. /* Differentiate between Turbo and Quick C */
  10.  
  11. #if defined( __TURBOC__ )
  12.      
  13.           /* Turbo C version */
  14.  
  15.           #define   MH_PRG         prog1
  16.  
  17.           #define   MH_INCFILE_A   MH_CONCATTOKEN( MH_PRG, _a )
  18.           #define   MH_INCFILE_B   MH_CONCATTOKEN( MH_PRG, _b )
  19.  
  20. #elif defined(  _QC  )
  21.  
  22.           /* Quick C version */
  23.  
  24.           #define   MH_INCFILE_A   MH_CONCATTOKEN( prog1, _a )
  25.           #define   MH_INCFILE_B   MH_CONCATTOKEN( prog1, _b )
  26.  
  27. #else
  28.           #error Possibly unsupported compiler encounter
  29. #endif
  30.  
  31. #define        MH_INCLUDE_A        <##MH_INCFILE_A##.h>
  32. #define        MH_INCLUDE_B        <##MH_INCFILE_B##.h>
  33.  
  34. /*   Include the files */
  35.  
  36. #include       MH_INCLUDE_A
  37. #include       MH_INCLUDE_B   
  38.  
  39. ********************************
  40.  
  41.