- ////////////////////////////////////////////////////////////////////////////////\r
- // work out the compiler\r
+ // compiler_name is the short name of the compiler, e.g. "gcc" or "MSVC"\r
+ std::string compiler_name(void)\r
+ {\r
+#if defined __GNUC__\r
+ return std::string("gcc");\r
+#elif defined _MSC_VER\r
+ return std::string("MSVC");\r
+#elif defined __BORLANDC__\r
+ return std::string("Borland");\r
+#else\r
+ return std::string("unknown compiler");\r
+#endif\r
+ }\r