diff options
author | Brad King <brad.king@kitware.com> | 2007-05-23 15:00:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-05-23 15:00:54 (GMT) |
commit | 2d051a67098333625a2c3f8a25b65936aa889239 (patch) | |
tree | 75b7673456d5ae13a78e83d7406c85b6f8d2ee58 /Modules/CMakePlatformId.h | |
parent | 526b72e12ce05798e897ad544b28924db4651946 (diff) | |
download | CMake-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/CMakePlatformId.h')
-rw-r--r-- | Modules/CMakePlatformId.h | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/Modules/CMakePlatformId.h b/Modules/CMakePlatformId.h index 8fb0982..1907422 100644 --- a/Modules/CMakePlatformId.h +++ b/Modules/CMakePlatformId.h @@ -1,78 +1,79 @@ /* Identify known platforms by name. */ #if defined(__linux) || defined(__linux__) || defined(linux) -#define _PLATFORM_ID "Linux" +# define PLATFORM_ID "Linux" #elif defined(__CYGWIN__) -#define _PLATFORM_ID "Cygwin" +# define PLATFORM_ID "Cygwin" #elif defined(__MINGW32__) -#define _PLATFORM_ID "MinGW" +# define PLATFORM_ID "MinGW" #elif defined(__APPLE__) -#define _PLATFORM_ID "Darwin" +# define PLATFORM_ID "Darwin" #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) -#define _PLATFORM_ID "Windows" +# define PLATFORM_ID "Windows" #elif defined(__FreeBSD__) || defined(__FreeBSD) -#define _PLATFORM_ID "FreeBSD" +# define PLATFORM_ID "FreeBSD" #elif defined(__NetBSD__) || defined(__NetBSD) -#define _PLATFORM_ID "NetBSD" +# define PLATFORM_ID "NetBSD" #elif defined(__OpenBSD__) || defined(__OPENBSD) -#define _PLATFORM_ID "OpenBSD" +# define PLATFORM_ID "OpenBSD" #elif defined(__sun) || defined(sun) -#define _PLATFORM_ID "SunOS" +# define PLATFORM_ID "SunOS" #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) -#define _PLATFORM_ID "AIX" +# define PLATFORM_ID "AIX" #elif defined(__sgi) || defined(__sgi__) || defined(_SGI) -#define _PLATFORM_ID "IRIX" +# define PLATFORM_ID "IRIX" #elif defined(__hpux) || defined(__hpux__) -#define _PLATFORM_ID "HP-UX" +# define PLATFORM_ID "HP-UX" #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) -#define _PLATFORM_ID "BeOS" +# define PLATFORM_ID "BeOS" #elif defined(__QNX__) || defined(__QNXNTO__) -#define _PLATFORM_ID "QNX" +# define PLATFORM_ID "QNX" #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) -#define _PLATFORM_ID "Tru64" +# define PLATFORM_ID "Tru64" #elif defined(__riscos) || defined(__riscos__) -#define _PLATFORM_ID "RISCos" +# define PLATFORM_ID "RISCos" #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) -#define _PLATFORM_ID "SINIX" +# define PLATFORM_ID "SINIX" #elif defined(__UNIX_SV__) -#define _PLATFORM_ID "UNIX_SV" +# define PLATFORM_ID "UNIX_SV" #elif defined(__bsdos__) -#define _PLATFORM_ID "BSDOS" +# define PLATFORM_ID "BSDOS" #elif defined(_MPRAS) || defined(MPRAS) -#define _PLATFORM_ID "MP-RAS" +# define PLATFORM_ID "MP-RAS" #elif defined(__osf) || defined(__osf__) -#define _PLATFORM_ID "OSF1" +# define PLATFORM_ID "OSF1" #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) -#define _PLATFORM_ID "SCO_SV" +# define PLATFORM_ID "SCO_SV" #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) -#define _PLATFORM_ID "ULTRIX" +# define PLATFORM_ID "ULTRIX" #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) -#define _PLATFORM_ID "Xenix" +# define PLATFORM_ID "Xenix" #else /* unknown platform */ -#define _PLATFORM_ID "" +# define PLATFORM_ID "" #endif -static char const info_platform[] = "INFO:platform[" _PLATFORM_ID "]"; + +static char const info_platform[] = "INFO:platform[" PLATFORM_ID "]"; |