You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
366 B

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