diff options
Diffstat (limited to 'gl/time_r.c')
| -rw-r--r-- | gl/time_r.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gl/time_r.c b/gl/time_r.c index 97be4fd0..b724f3b3 100644 --- a/gl/time_r.c +++ b/gl/time_r.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Reentrant time functions like localtime_r. | 1 | /* Reentrant time functions like localtime_r. |
| 2 | 2 | ||
| 3 | Copyright (C) 2003, 2006-2007, 2010-2023 Free Software Foundation, Inc. | 3 | Copyright (C) 2003, 2006-2007, 2010-2024 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is free software: you can redistribute it and/or modify | 5 | This file is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU Lesser General Public License as | 6 | it under the terms of the GNU Lesser General Public License as |
| @@ -21,6 +21,11 @@ | |||
| 21 | 21 | ||
| 22 | #include <time.h> | 22 | #include <time.h> |
| 23 | 23 | ||
| 24 | /* The replacement functions in this file are only used on native Windows. | ||
| 25 | They are multithread-safe, because the gmtime() and localtime() functions | ||
| 26 | on native Windows — both in the ucrt and in the older MSVCRT — return a | ||
| 27 | pointer to a 'struct tm' in thread-local memory. */ | ||
| 28 | |||
| 24 | static struct tm * | 29 | static struct tm * |
| 25 | copy_tm_result (struct tm *dest, struct tm const *src) | 30 | copy_tm_result (struct tm *dest, struct tm const *src) |
| 26 | { | 31 | { |
