1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-08-09 18:12:28 +02:00
Files
metasploit-payloads/c/meterpreter/source/extensions/python/Python/getcompiler.c
2015-10-30 15:12:58 -05:00

29 lines
366 B
C

/* Return the compiler identification, if possible. */
#include "Python.h"
#ifndef COMPILER
#ifdef __GNUC__
#define COMPILER "\n[GCC " __VERSION__ "]"
#endif
#endif /* !COMPILER */
#ifndef COMPILER
#ifdef __cplusplus
#define COMPILER "[C++]"
#else
#define COMPILER "[C]"
#endif
#endif /* !COMPILER */
const char *
Py_GetCompiler(void)
{
return COMPILER;
}