| 25 | #endif |
| 26 | |
| 27 | static std::string getCompiler() |
| 28 | { |
| 29 | std::stringstream ss; |
| 30 | #ifdef __GNUC__ |
| 31 | ss << "GCC"; |
| 32 | #else /* __GNUC__ */ |
| 33 | ss << "unknown compiler"; |
| 34 | #endif /* __GNUC__ */ |
| 35 | #ifdef __VERSION__ |
| 36 | ss << " version " << __VERSION__; |
| 37 | #else /* __VERSION__ */ |
| 38 | ss << ", unknown version"; |
| 39 | #endif /* __VERSION__ */ |
| 40 | return ss.str(); |
| 41 | } |
| 42 | |
| 43 | static std::string getCompiledDateTime() |
| 44 | { |