MCPcopy Create free account
hub / github.com/cpvrlab/ImagePlay / CurrentlyRunningOnPlatform

Method CurrentlyRunningOnPlatform

_fervor/fvplatform.cpp:11–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11bool FvPlatform::CurrentlyRunningOnPlatform(QString platform)
12{
13 platform = platform.toUpper().trimmed();
14 if (platform.isEmpty()) {
15 return false;
16 }
17
18 // Defined on AIX.
19#ifdef Q_OS_AIX
20 if (platform == "Q_OS_AIX") {
21 return true;
22 }
23#endif
24
25 // Q_OS_BSD4 ("Defined on Any BSD 4.4 system") intentionally skipped.
26
27 // Defined on BSD/OS.
28#ifdef Q_OS_BSDI
29 if (platform == "Q_OS_BSDI") {
30 return true;
31 }
32#endif
33
34 // Defined on Cygwin.
35#ifdef Q_OS_CYGWIN
36 if (platform == "Q_OS_CYGWIN") {
37 return true;
38 }
39#endif
40
41 // Q_OS_DARWIN ("Defined on Darwin OS (synonym for Q_OS_MAC)") intentionally skipped.
42
43 // Defined on DG/UX.
44#ifdef Q_OS_DGUX
45 if (platform == "Q_OS_DGUX") {
46 return true;
47 }
48#endif
49
50 // Defined on DYNIX/ptx.
51#ifdef Q_OS_DYNIX
52 if (platform == "Q_OS_DYNIX") {
53 return true;
54 }
55#endif
56
57 // Defined on FreeBSD.
58#ifdef Q_OS_FREEBSD
59 if (platform == "Q_OS_FREEBSD") {
60 return true;
61 }
62#endif
63
64 // Defined on HP-UX.
65#ifdef Q_OS_HPUX
66 if (platform == "Q_OS_HPUX") {
67 return true;
68 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected