Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn SVENSSON via Newlib <newlib@sourceware.org>2020-10-05 15:50:13 +0300
committerCorinna Vinschen <corinna@vinschen.de>2020-10-15 17:59:51 +0300
commit7ed952000c2e43f4297fe247f0331e50a14cd688 (patch)
treea657c15f08c95c72424e041f7ef2498841a3aaa3 /newlib/libc/time
parent93216e27916bd588fc01425bcb18498672dcaa10 (diff)
libc/time: Move internal newlib tz-structs into own header
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>
Diffstat (limited to 'newlib/libc/time')
-rw-r--r--newlib/libc/time/local.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/time/local.h b/newlib/libc/time/local.h
index dce51cda2..bfe06e622 100644
--- a/newlib/libc/time/local.h
+++ b/newlib/libc/time/local.h
@@ -1,6 +1,7 @@
/* local header used by libc/time routines */
#include <_ansi.h>
#include <time.h>
+#include <sys/_tz_structs.h>
#define SECSPERMIN 60L
#define MINSPERHOUR 60L