home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Python 1.3 / source code / Mac / macgetcompiler.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-17  |  439 b   |  32 lines  |  [TEXT/R*ch]

  1. /* Return a string representing the compiler name */
  2.  
  3. #ifdef THINK_C
  4. #define COMPILER " [THINK C]"
  5. #endif
  6.  
  7. #ifdef __MWERKS__
  8. #ifdef __powerc
  9. #define COMPILER " [CW PPC]"
  10. #else
  11. #ifdef __CFM68K__
  12. #define COMPILER " [CW CFM68K]"
  13. #else
  14. #define COMPILER " [CW 68K]"
  15. #endif
  16. #endif
  17. #endif
  18.  
  19. #ifdef MPW
  20. #ifdef __SC__
  21. #define COMPILER " [Symantec MPW]"
  22. #else
  23. #define COMPILER " [Apple MPW]"
  24. #endif
  25. #endif
  26.  
  27. char *
  28. getcompiler()
  29. {
  30.     return COMPILER;
  31. }
  32.