public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] winsup: delete old _LIBC logic
@ 2021-11-10  0:46 Mike Frysinger
  2021-11-10 10:57 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2021-11-10  0:46 UTC (permalink / raw)
  To: newlib

This logic has never been used as we don't define _LIBC and the
reentrant.h header doesn't exist, so delete it all.
---
 winsup/cygwin/tzcode/private.h | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/winsup/cygwin/tzcode/private.h b/winsup/cygwin/tzcode/private.h
index 830750ad5b1d..beae506d2270 100644
--- a/winsup/cygwin/tzcode/private.h
+++ b/winsup/cygwin/tzcode/private.h
@@ -777,19 +777,4 @@ char *ctime_r(time_t const *, char *);
   ((int_fast64_t) YEARSPERREPEAT * (int_fast64_t) AVGSECSPERYEAR)
 #define SECSPERREPEAT_BITS	34	/* ceil(log2(SECSPERREPEAT)) */
 
-#ifdef _LIBC
-#include "reentrant.h"
-extern struct __state *__lclptr;
-#if defined(__LIBC12_SOURCE__)
-#define tzset_unlocked __tzset_unlocked
-#else
-#define tzset_unlocked __tzset_unlocked50
-#endif
-
-void tzset_unlocked(void);
-#ifdef _REENTRANT
-extern rwlock_t __lcl_lock;
-#endif
-#endif
-
 #endif /* !defined PRIVATE_H */
-- 
2.33.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] winsup: delete old _LIBC logic
  2021-11-10  0:46 [PATCH] winsup: delete old _LIBC logic Mike Frysinger
@ 2021-11-10 10:57 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2021-11-10 10:57 UTC (permalink / raw)
  To: newlib

On Nov  9 19:46, Mike Frysinger wrote:
> This logic has never been used as we don't define _LIBC and the
> reentrant.h header doesn't exist, so delete it all.
> ---
>  winsup/cygwin/tzcode/private.h | 15 ---------------
>  1 file changed, 15 deletions(-)
> 
> diff --git a/winsup/cygwin/tzcode/private.h b/winsup/cygwin/tzcode/private.h
> index 830750ad5b1d..beae506d2270 100644
> --- a/winsup/cygwin/tzcode/private.h
> +++ b/winsup/cygwin/tzcode/private.h
> @@ -777,19 +777,4 @@ char *ctime_r(time_t const *, char *);
>    ((int_fast64_t) YEARSPERREPEAT * (int_fast64_t) AVGSECSPERYEAR)
>  #define SECSPERREPEAT_BITS	34	/* ceil(log2(SECSPERREPEAT)) */
>  
> -#ifdef _LIBC
> -#include "reentrant.h"
> -extern struct __state *__lclptr;
> -#if defined(__LIBC12_SOURCE__)
> -#define tzset_unlocked __tzset_unlocked
> -#else
> -#define tzset_unlocked __tzset_unlocked50
> -#endif
> -
> -void tzset_unlocked(void);
> -#ifdef _REENTRANT
> -extern rwlock_t __lcl_lock;
> -#endif
> -#endif
> -
>  #endif /* !defined PRIVATE_H */
> -- 

ACK.  Please push.


Thanks,
Corinna


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-10 10:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-10  0:46 [PATCH] winsup: delete old _LIBC logic Mike Frysinger
2021-11-10 10:57 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).