|
|
DescriptionThe USL C/C++ compiler. Mostly provided with USL variants of Unix System V Release 4, SCO OpenServer, and SCO UnixWare. It was replaced by the SCO Development System with later versions of SCO OpenServer and SCO UnixWare. Macros| Identification | __USLC__ | | | | Version | __SCO_VERSION__ | VRRYYYYMM | V = Version RR = Revision YYYY = Year MM = Month |
Examples| 3.2 | 302199801 | | | 3.3 | 303200210 | UnixWare 7.1.3 UDK C++ (CC) | | 3.4 | 304200805 | UnixWare 7.1.4 UDK C++ (CC) | | 4.2 | 402200805 | UnixWare 7.1.4 UDK C (cc) |
NotesFor the exact identity of the USL compiler's version you're probably firmly in the "It's Unix!" nonsense ala AT&T Unix. However, we can do some guesswork. 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| #include <stdio.h>
int
main(void)
{
#if defined(_M_SYS5) || defined(_M_SYSV)
printf("Host is System V.\n");
#endif
#if defined(M_UNIX) || defined(unix)
# if defined(M_XENIX)
printf("Xenix or OpenServer\n");
# endif
printf("Unix.\n");
#endif
#if defined(__USLC__)
printf("USL C compiler.\n");
#endif
#if defined(_SCO_DS)
printf("SCO C compiler.\n");
#endif
#if defined(__SCO_VERSION__)
printf("SCO compiler version %d\n", __SCO_VERSION__);
#endif
return 0;
}
|
| |
On UnixWare 7.1.3, this picks up unix, __USLC__, and __SCO_VERSION__. On OpenServer 5.0.7, this picks up _M_SYS5, _M_SYSV, M_UNIX, M_XENIX, __USLC__, and _SCO_DS. See AlsoSCO Development System |