Initial revision
This commit is contained in:
17
Python/getcompiler.c
Normal file
17
Python/getcompiler.c
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifdef __GNUC__
|
||||
#define COMPILER " [GCC " __VERSION__ "]"
|
||||
#endif
|
||||
|
||||
#ifndef COMPILER
|
||||
#ifdef __cplusplus
|
||||
#define COMPILER "[C++]"
|
||||
#else
|
||||
#define COMPILER "[C]"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
char *
|
||||
getcompiler()
|
||||
{
|
||||
return COMPILER;
|
||||
}
|
||||
Reference in New Issue
Block a user