include: Added \threadsafety notes to about 60 more functions.

Reference Issue #7140.

(cherry picked from commit 28e4269915)
This commit is contained in:
Ryan C. Gordon 2026-02-18 19:49:59 -05:00
parent 13ff9e0818
commit 4cc96e3506
No known key found for this signature in database
GPG key ID: FA148B892AB48044
12 changed files with 153 additions and 1 deletions

View file

@ -32,7 +32,6 @@
*/
Sint64 SDL_CivilToDays(int year, int month, int day, int *day_of_week, int *day_of_year)
{
year -= month <= 2;
const int era = (year >= 0 ? year : year - 399) / 400;
const unsigned yoe = (unsigned)(year - era * 400); // [0, 399]