Rename dcpomatic_sleep -> dcpomatic_sleep_seconds.
[dcpomatic.git] / src / lib / cross.cc
index 171bf2c8100767bb79d8d5b610767c768a44e705..1b83bad7c6dca9a02cf9696eccf8c8834f0fa8b7 100644 (file)
@@ -65,7 +65,7 @@ using boost::shared_ptr;
 
 /** @param s Number of seconds to sleep for */
 void
-dcpomatic_sleep (int s)
+dcpomatic_sleep_seconds (int s)
 {
 #ifdef DCPOMATIC_POSIX
        sleep (s);
@@ -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;
+}