-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MMDevice: Remove gettimeofday() for Windows
It is a bad idea to define functions named like POSIX standard ones, because other people can have the same idea and they can clash (we previously had this issue with Python < 3.7 and gettimeofday()). Fortunately no device adapter is currently using this function on Windows, so just remove the dead code. In modern C++, std::chrono offers better time functions for any new code that may need similar facilities. A few errors corrected in 3 device adapters that used definitions from Windows.h, which is no longer included (without WIN32_LEAN_AND_MEAN) by DeviceUtils.h.
- Loading branch information
1 parent
62855a4
commit 5a0ba3b
Showing
6 changed files
with
5 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters