Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Modules / CMakePlatformId.h.in
blob8e786ba79fc28562dc49fb6d10c53fbbf1ffa3e0
1 /* Identify known platforms by name. */
2 #if defined(__linux) || defined(__linux__) || defined(linux)
3 # define PLATFORM_ID "Linux"
5 #elif defined(__CYGWIN__)
6 # define PLATFORM_ID "Cygwin"
8 #elif defined(__MINGW32__)
9 # define PLATFORM_ID "MinGW"
11 #elif defined(__APPLE__)
12 # define PLATFORM_ID "Darwin"
14 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
15 # define PLATFORM_ID "Windows"
17 #elif defined(__FreeBSD__) || defined(__FreeBSD)
18 # define PLATFORM_ID "FreeBSD"
20 #elif defined(__NetBSD__) || defined(__NetBSD)
21 # define PLATFORM_ID "NetBSD"
23 #elif defined(__OpenBSD__) || defined(__OPENBSD)
24 # define PLATFORM_ID "OpenBSD"
26 #elif defined(__sun) || defined(sun)
27 # define PLATFORM_ID "SunOS"
29 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
30 # define PLATFORM_ID "AIX"
32 #elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
33 # define PLATFORM_ID "IRIX"
35 #elif defined(__hpux) || defined(__hpux__)
36 # define PLATFORM_ID "HP-UX"
38 #elif defined(__HAIKU) || defined(__HAIKU__) || defined(_HAIKU)
39 # define PLATFORM_ID "Haiku"
40 /* Haiku also defines __BEOS__ so we must
41 put it prior to the check for __BEOS__
44 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
45 # define PLATFORM_ID "BeOS"
47 #elif defined(__QNX__) || defined(__QNXNTO__)
48 # define PLATFORM_ID "QNX"
50 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
51 # define PLATFORM_ID "Tru64"
53 #elif defined(__riscos) || defined(__riscos__)
54 # define PLATFORM_ID "RISCos"
56 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
57 # define PLATFORM_ID "SINIX"
59 #elif defined(__UNIX_SV__)
60 # define PLATFORM_ID "UNIX_SV"
62 #elif defined(__bsdos__)
63 # define PLATFORM_ID "BSDOS"
65 #elif defined(_MPRAS) || defined(MPRAS)
66 # define PLATFORM_ID "MP-RAS"
68 #elif defined(__osf) || defined(__osf__)
69 # define PLATFORM_ID "OSF1"
71 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
72 # define PLATFORM_ID "SCO_SV"
74 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
75 # define PLATFORM_ID "ULTRIX"
77 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
78 # define PLATFORM_ID "Xenix"
80 #else /* unknown platform */
81 # define PLATFORM_ID ""
83 #endif
85 /* Construct the string literal in pieces to prevent the source from
86 getting matched. Store it in a pointer rather than an array
87 because some compilers will just produce instructions to fill the
88 array rather than assigning a pointer to a static array. */
89 char* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";