Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace ftime by gettimeofday for MiNT #947

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

th-otto
Copy link
Contributor

@th-otto th-otto commented Mar 16, 2024

This was initially fixed for MiNT, where ftime() is available, but always set the millisec to 0. Avoiding ftime() alltogether should also fix #927

@th-otto th-otto force-pushed the PR-5 branch 2 times, most recently from bb22d78 to 3043fc6 Compare March 19, 2024 12:03
ftime() is an obsolete interface, and <sys/timeb.h> may not be present on all platforms.
Also, multiplying a time_t by 1000 will overflow the range of an unsigned 32-bit int.
@OmniBlade OmniBlade merged commit 8688c7a into TheAssemblyArmada:vanilla Mar 27, 2024
10 checks passed
@th-otto th-otto deleted the PR-5 branch March 28, 2024 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build issue on OpenBSD 7.3
2 participants