summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCCompilerId.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-05-23 15:00:54 (GMT)
committerBrad King <brad.king@kitware.com>2007-05-23 15:00:54 (GMT)
commit2d051a67098333625a2c3f8a25b65936aa889239 (patch)
tree75b7673456d5ae13a78e83d7406c85b6f8d2ee58 /Modules/CMakeCCompilerId.c
parent526b72e12ce05798e897ad544b28924db4651946 (diff)
downloadCMake-2d051a67098333625a2c3f8a25b65936aa889239.zip
CMake-2d051a67098333625a2c3f8a25b65936aa889239.tar.gz
CMake-2d051a67098333625a2c3f8a25b65936aa889239.tar.bz2
ENH: Unify design of CMakeCCompilerId.c, CMakeCXXCompilerId.cpp, and CMakePlatformId.h. BUG: Do not violate system-reserved symbol namespace _[A-Z].
Diffstat (limited to 'Modules/CMakeCCompilerId.c')
-rw-r--r--Modules/CMakeCCompilerId.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/Modules/CMakeCCompilerId.c b/Modules/CMakeCCompilerId.c
index 8b883c8..ae9e188 100644
--- a/Modules/CMakeCCompilerId.c
+++ b/Modules/CMakeCCompilerId.c
@@ -7,49 +7,50 @@
#endif
#if defined(__INTEL_COMPILER) || defined(__ICC)
-#define _COMPILER_ID "Intel"
+# define COMPILER_ID "Intel"
#elif defined(__BORLANDC__)
-#define _COMPILER_ID "Borland"
+# define COMPILER_ID "Borland"
#elif defined(__WATCOMC__)
-#define _COMPILER_ID "Watcom"
+# define COMPILER_ID "Watcom"
#elif defined(__SUNPRO_C)
-#define _COMPILER_ID "SunPro"
+# define COMPILER_ID "SunPro"
#elif defined(__HP_cc)
-#define _COMPILER_ID "HP"
+# define COMPILER_ID "HP"
#elif defined(__DECC)
-#define _COMPILER_ID "Compaq"
+# define COMPILER_ID "Compaq"
#elif defined(__IBMC__)
-#define _COMPILER_ID "VisualAge"
+# define COMPILER_ID "VisualAge"
#elif defined(__GNUC__)
-#define _COMPILER_ID "GNU"
+# define COMPILER_ID "GNU"
#elif defined(_MSC_VER)
-#define _COMPILER_ID "MSVC"
+# define COMPILER_ID "MSVC"
#elif defined(_COMPILER_VERSION)
-#define _COMPILER_ID "MIPSpro"
+# define COMPILER_ID "MIPSpro"
/* This compiler is either not known or is too old to define an
identification macro. Try to identify the platform and guess that
it is the native compiler. */
#elif defined(__sgi)
-#define _COMPILER_ID "MIPSpro"
+# define COMPILER_ID "MIPSpro"
#elif defined(__hpux) || defined(__hpua)
-#define _COMPILER_ID "HP"
+# define COMPILER_ID "HP"
#else /* unknown compiler */
-#define _COMPILER_ID ""
+# define COMPILER_ID ""
+
#endif
-static char const info_compiler[] = "INFO:compiler[" _COMPILER_ID "]";
+static char const info_compiler[] = "INFO:compiler[" COMPILER_ID "]";
/* Include the platform identification source. */
#include "CMakePlatformId.h"