]> gitweb.factorcode.org Git - factor.git/commitdiff
yay C89
authorJoe Groff <arcata@gmail.com>
Tue, 2 Mar 2010 01:56:17 +0000 (17:56 -0800)
committerJoe Groff <arcata@gmail.com>
Tue, 2 Mar 2010 01:56:17 +0000 (17:56 -0800)
vm/master.hpp

index 9ba4ebd64b0166ac02ed9b5b29affef782b2498c..dca3d7473cf9b0405cae7f2d11091860b5c494a2 100755 (executable)
 #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