aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/tzcode
AgeCommit message (Collapse)AuthorFilesLines
2024-03-07Cygwin: move EXPORT_ALIAS expressions to end of sourceCorinna Vinschen1-1/+2
This isn't strictly required, but it avoids confusion in ctags. Ctags fails to record the next function or method following the EXPORT_ALIAS expression. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-10winsup: delete old _LIBC logicMike Frysinger1-15/+0
This logic has never been used as we don't define _LIBC and the reentrant.h header doesn't exist, so delete it all.
2020-10-15libc/time: Move internal newlib tz-structs into own headerTorbjörn SVENSSON via Newlib1-0/+1
As discussed in GCC bug 97088 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97088), parameters in prototypes of library functions should use reserved names, or no name at all. This patch moves the internal struct __tzrule_struct to its own internal header sys/_tz_structs.h. This is included from newlib's time code as well as from Cygwin's localtime wrapper. Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com> Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2020-05-26Cygwin: drop useless commentCorinna Vinschen1-2/+0
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2020-05-26Cygwin: revamp localtime.o build ruleCorinna Vinschen1-1/+1
Rename localtime.c.patched to localtime.patched.c to keep the correct language suffix. Create localtime.patched.c in the build dir rather than in the source dir. Decouple the build rule for creating localtime.patched.c from the rule to build localtime.o, so we don't have to rebuild the patched source file all the time. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2020-05-26Cygwin: convert localtime_wrapper.c to plain C sourceCorinna Vinschen2-20/+16
That also requires a small tweak to localtime.c.patch, otherwise GCC complains about the position of the 'trydefrules' label. Also, simplify includes. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2020-05-25Cygwin: rename localtime.cc to localtime_wrapper.cCorinna Vinschen1-0/+0
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2020-05-25Cygwin: tzcode resync: detailsMark Geisert4-0/+486
Add tz_posixrules.h with data generated from most recent Cygwin tzdata package. Establish localtime.cc as primarily a wrapper around a patched copy of localtime.c. See README for more information.
2020-05-25Cygwin: tzcode resync: importsMark Geisert4-0/+3462
Import most recent NetBSD localtime.c, private.h, and tzfile.h. An empty namespace.h suffices for Cygwin.