diff options
Diffstat (limited to 'CompilerInfo.h')
-rw-r--r-- | CompilerInfo.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/CompilerInfo.h b/CompilerInfo.h new file mode 100644 index 0000000..78ba379 --- /dev/null +++ b/CompilerInfo.h @@ -0,0 +1,15 @@ +/** \file CompilerInfo.h +\brief Define the compiler info +\author alpha_one_x86 +\licence GPL3, see the file COPYING */ + +/// \def COMPILERINFO the string to identify the compiler +#if defined(Q_CC_GNU) + #define COMPILERINFO std::string("GCC ")+std::to_string(__GNUC__)+"."+std::to_string(__GNUC_MINOR__)+"."+std::to_string(__GNUC_PATCHLEVEL__)+" build: "+__DATE__+" "+__TIME__ +#else + #if defined(__DATE__) && defined(__TIME__) + #define COMPILERINFO std::string("Unknown compiler: ")+__DATE__+" "+__TIME__ + #else + #define COMPILERINFO std::string("Unknown compiler") + #endif +#endif |