Fix C89 declaration for macOS modules.

Since Clang 14, `-Wdeclaration-after-statement` is enforced on every
standard.
This commit is contained in:
Pierre Wendling authored and Sam Lantinga committed 2022-06-27 15:19:40 -07:00
1 parent e4a8087551
commit 6c536afdb7
17 files changed
+375 -270

No files matched your search

+1 -2
View File
@@ -87,8 +87,7 @@ SDL_TicksInit(void)
has_monotonic_time = SDL_TRUE;
} else
#elif defined(__APPLE__)
kern_return_t ret = mach_timebase_info(&mach_base_info);
if (ret == 0) {
if (0 == mach_timebase_info(&mach_base_info)) {
has_monotonic_time = SDL_TRUE;
start_mach = mach_absolute_time();
} else