Module Name:    src
Committed By:   christos
Date:           Mon Sep 16 17:25:34 UTC 2024

Modified Files:
        src/include: time.h

Log Message:
asctime_r and ctime_r are no more for POSIX202405


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/include/time.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/include/time.h
diff -u src/include/time.h:1.50 src/include/time.h:1.51
--- src/include/time.h:1.50	Sun Sep  8 14:13:07 2024
+++ src/include/time.h	Mon Sep 16 13:25:34 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: time.h,v 1.50 2024/09/08 18:13:07 rillig Exp $	*/
+/*	$NetBSD: time.h,v 1.51 2024/09/16 17:25:34 christos Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -171,17 +171,20 @@ int timer_delete(timer_t);
 int timer_getoverrun(timer_t);
 #endif /* _POSIX_C_SOURCE >= 199309 || _XOPEN_SOURCE >= 500 || ... */
 
-#if (_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \
-    defined(_REENTRANT) || defined(_NETBSD_SOURCE)
+#if ((_POSIX_C_SOURCE - 0) >= 199506L && (_POSIX_C_SOURCE - 0) < 202405L) || \
+    (_XOPEN_SOURCE - 0) >= 500 || defined(_REENTRANT) || defined(_NETBSD_SOURCE)
 char *asctime_r(const struct tm * __restrict, char * __restrict);
 #ifndef __LIBC12_SOURCE__
 char *ctime_r(const time_t *, char *) __RENAME(__ctime_r50);
 struct tm *gmtime_r(const time_t * __restrict, struct tm * __restrict)
     __RENAME(__gmtime_r50);
+#endif
+#endif
+#if (_POSIX_C_SOURCE - 0) >= 199506L || \
+    (_XOPEN_SOURCE - 0) >= 500 || defined(_REENTRANT) || defined(_NETBSD_SOURCE)
 struct tm *localtime_r(const time_t * __restrict, struct tm * __restrict)
     __RENAME(__localtime_r50);
 #endif
-#endif
 
 #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)
 #  ifndef __LOCALE_T_DECLARED

Reply via email to