summaryrefslogtreecommitdiff
path: root/CompilerInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'CompilerInfo.h')
-rw-r--r--CompilerInfo.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/CompilerInfo.h b/CompilerInfo.h
index c4b4464..78ba379 100644
--- a/CompilerInfo.h
+++ b/CompilerInfo.h
@@ -5,11 +5,11 @@
/// \def COMPILERINFO the string to identify the compiler
#if defined(Q_CC_GNU)
- #define COMPILERINFO QString("GCC %1.%2.%3 build: ").arg(__GNUC__).arg(__GNUC_MINOR__).arg(__GNUC_PATCHLEVEL__)+__DATE__+" "+__TIME__
+ #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 QString("Unknow compiler: ")+__DATE__+" "+__TIME__
- #else
- #define COMPILERINFO QString("Unknow compiler")
- #endif
-#endif
+ #if defined(__DATE__) && defined(__TIME__)
+ #define COMPILERINFO std::string("Unknown compiler: ")+__DATE__+" "+__TIME__
+ #else
+ #define COMPILERINFO std::string("Unknown compiler")
+ #endif
+#endif