diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-06-05 21:44:29 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-06-05 21:44:29 +0100 |
| commit | 951d70db4f81b5ddd4093f11853637c8ecbe63c5 (patch) | |
| tree | 3d83cd45041c083bdb102ee2d8d05483a5b3d1e0 /src/lib/cross.cc | |
| parent | 422d7ae041812af3587db6fdbead159672ff2772 (diff) | |
| parent | d699b3514c2c9d9fb32b19f487ad648e6fadb814 (diff) | |
Merge branch 'v2.15.x' of ssh://git.carlh.net/home/carl/git/dcpomatic into v2.15.xv2.15.7
Diffstat (limited to 'src/lib/cross.cc')
| -rw-r--r-- | src/lib/cross.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/cross.cc b/src/lib/cross.cc index 171bf2c81..a7fb298cb 100644 --- a/src/lib/cross.cc +++ b/src/lib/cross.cc @@ -501,3 +501,16 @@ command_and_read (string cmd) return ""; } + +/** @return true if this process is a 32-bit one running on a 64-bit-capable OS */ +bool +running_32_on_64 () +{ +#ifdef DCPOMATIC_WINDOWS + BOOL p; + IsWow64Process (GetCurrentProcess(), &p); + return p; +#endif + /* XXX: assuming nobody does this on Linux / OS X */ + return false; +} |
