home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Programming / Python2 / Python20_source / Python / getcompiler.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-10-25  |  366 b   |  29 lines

  1.  
  2. /* Return the compiler identification, if possible. */
  3.  
  4. #include "Python.h"
  5.  
  6. #ifndef COMPILER
  7.  
  8. #ifdef __GNUC__
  9. #define COMPILER "\n[GCC " __VERSION__ "]"
  10. #endif
  11.  
  12. #endif /* !COMPILER */
  13.  
  14. #ifndef COMPILER
  15.  
  16. #ifdef __cplusplus
  17. #define COMPILER "[C++]"
  18. #else
  19. #define COMPILER "[C]"
  20. #endif
  21.  
  22. #endif /* !COMPILER */
  23.  
  24. const char *
  25. Py_GetCompiler(void)
  26. {
  27.     return COMPILER;
  28. }
  29.