std.system
Information about the target operating system, environment, and CPU. License:Boost License 1.0. Authors:
Walter Bright and Jonathan M Davis Source:
std/system.d
- Operating system.
Note:
This is for cases where you need a value representing the OS at runtime. If you're doing something which should compile differently on different OSes, then please use version(Windows), version(linux), etc. See Also:
Predefined Versions- Microsoft 32 bit Windows systems
- Microsoft 64 bit Windows systems
- All Linux Systems
- Mac OS X
- FreeBSD
- Solaris
- Other Posix Systems
- The OS that the program was compiled for.
- Byte order endianness.
Note:
This is intended for cases where you need to deal with endianness at runtime. If you're doing something which should compile differently depending on whether you're compiling on a big endian or little endian machine, then please use version(BigEndian) and version(LittleEndian). See Also:
Predefined Versions- Big endian byte order
- Little endian byte order
- The endianness that the program was compiled for.