The following are the operating systems which are recognized by wxWidgets and whose version can be detected at run-time.
The values of the constants are chosen so that they can be combined as flags; this allows checking for operating system families like e.g. wxOS_MAC
and wxOS_UNIX
.
Note that you can obtain more detailed information about the current OS version in use by checking the major and minor version numbers returned by wxGetOsVersion() or by wxPlatformInfo::GetOSMajorVersion() , wxPlatformInfo::GetOSMinorVersion() .
Enumerator wxOS_UNKNOWN returned on error
wxOS_MAC_OS Apple Mac OS 8/9/X with Mac paths.
wxOS_MAC_OSX_DARWIN Apple Mac OS X with Unix paths.
wxOS_MAC A combination of all wxOS_MAC_*
values previously listed.
wxOS_WINDOWS_9X Windows 9x family (95/98/ME)
wxOS_WINDOWS_NT Windows NT family (NT/2000/XP/Vista/7)
wxOS_WINDOWS_MICRO MicroWindows.
wxOS_WINDOWS_CE Windows CE (Window Mobile)
wxOS_WINDOWS A combination of all wxOS_WINDOWS_*
values previously listed.
wxOS_UNIX_LINUX Linux.
wxOS_UNIX_FREEBSD FreeBSD.
wxOS_UNIX_OPENBSD OpenBSD.
wxOS_UNIX_NETBSD NetBSD.
wxOS_UNIX_SOLARIS SunOS.
wxOS_UNIX_AIX AIX.
wxOS_UNIX_HPUX HP/UX.
wxOS_UNIX A combination of all wxOS_UNIX_*
values previously listed.
wxOS_DOS Microsoft DOS.
wxOS_OS2 OS/2.