Skip to content

Commit

Permalink
240501.012332.HKT comment on localtime_s and localtime_r
Browse files Browse the repository at this point in the history
  • Loading branch information
zaikunzhang committed Apr 30, 2024
1 parent c8c671b commit e2dc712
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions c/tests/stress.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#define M_NLCON 200

// Thread-safe version of localtime
// N.B.: localtime_s is typically associated with Microsoft's C runtime library while localtime_r
// is typically associated with POSIX-compliant systems; they have different argument orders.
#ifdef _WIN32
#define localtime_safe(a, b) localtime_s(a, b)
#else
Expand Down

0 comments on commit e2dc712

Please sign in to comment.