yay C89
parent
ac979619e6
commit
1c08fde381
|
@ -29,15 +29,17 @@
|
|||
#include <vector>
|
||||
#include <iostream>
|
||||
|
||||
#define FACTOR_STRINGIZE(x) #x
|
||||
|
||||
/* Record compiler version */
|
||||
#if defined(__clang__)
|
||||
#define FACTOR_COMPILER_VERSION "Clang (GCC " __VERSION__ ")"
|
||||
#elif defined(__INTEL_COMPILER)
|
||||
#define FACTOR_COMPILER_VERSION "Intel C Compiler " #__INTEL_COMPILER
|
||||
#define FACTOR_COMPILER_VERSION "Intel C Compiler " FACTOR_STRINGIZE(__INTEL_COMPILER)
|
||||
#elif defined(__GNUC__)
|
||||
#define FACTOR_COMPILER_VERSION "GCC " __VERSION__
|
||||
#elif defined(_MSC_FULL_VER)
|
||||
#define FACTOR_COMPILER_VERSION "Microsoft Visual C++ " #_MSC_FULL_VER
|
||||
#define FACTOR_COMPILER_VERSION "Microsoft Visual C++ " FACTOR_STRINGIZE(_MSC_FULL_VER)
|
||||
#else
|
||||
#define FACTOR_COMPILER_VERSION "unknown"
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue